summaryrefslogtreecommitdiff
path: root/program/steps/mail/move_del.inc
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2006-11-20 18:15:53 +0000
committersvncommit <devs@roundcube.net>2006-11-20 18:15:53 +0000
commit646cebd34843f30c63b59c80456650f36a135441 (patch)
treed6c608149578f710f5217486f7d180fb8b154dd7 /program/steps/mail/move_del.inc
parenta33df6723199491322a948651db353340eb1f903 (diff)
Initialize this.message_list only if we have one.
Diffstat (limited to 'program/steps/mail/move_del.inc')
-rw-r--r--program/steps/mail/move_del.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/move_del.inc b/program/steps/mail/move_del.inc
index bfafb411d..80b2ad8d6 100644
--- a/program/steps/mail/move_del.inc
+++ b/program/steps/mail/move_del.inc
@@ -62,7 +62,7 @@ else
// update message count display
$pages = ceil($IMAP->messagecount()/$IMAP->page_size);
-$commands = "this.message_list.init();\n";
+$commands = "if (this.message_list) this.message_list.init();\n";
$commands .= sprintf("this.set_rowcount('%s');\n", rcmail_get_messagecount_text());
$commands .= sprintf("this.set_env('pagecount', %d);\n", $pages);