summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authorrobin <robin@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-11-20 18:15:53 +0000
committerrobin <robin@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-11-20 18:15:53 +0000
commit694c9abde7b33656a83d571fe05d815bb56537d9 (patch)
tree90a940c27ad57a4707d1051a13258a0bec72bf8c /roundcubemail/program
parent3b83229b92da96912d61cf59c03fe8e154f2666d (diff)
Initialize this.message_list only if we have one.
git-svn-id: https://svn.roundcube.net/trunk@373 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/steps/mail/move_del.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/move_del.inc b/roundcubemail/program/steps/mail/move_del.inc
index bfafb411d..80b2ad8d6 100644
--- a/roundcubemail/program/steps/mail/move_del.inc
+++ b/roundcubemail/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);