From 646cebd34843f30c63b59c80456650f36a135441 Mon Sep 17 00:00:00 2001 From: svncommit <devs@roundcube.net> Date: Mon, 20 Nov 2006 13:15:53 -0500 Subject: [PATCH] Initialize this.message_list only if we have one. --- program/steps/mail/move_del.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/steps/mail/move_del.inc b/program/steps/mail/move_del.inc index bfafb41..80b2ad8 100644 --- a/program/steps/mail/move_del.inc +++ b/program/steps/mail/move_del.inc @@ -62,7 +62,7 @@ // 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); -- Gitblit v1.9.1