Initialize this.message_list only if we have one.

release-0.6
svncommit 18 years ago
parent a33df67231
commit 646cebd348

@ -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);

Loading…
Cancel
Save