From d2d8d498c67e7193dcdcebe7d806753ec02843fd Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Fri, 05 Apr 2013 09:00:57 -0400 Subject: [PATCH] Fix copying messages to a folder with "empty" name e.g. "0", better error handling --- program/steps/mail/mark.inc | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/program/steps/mail/mark.inc b/program/steps/mail/mark.inc index c220fc5..dfc892e 100644 --- a/program/steps/mail/mark.inc +++ b/program/steps/mail/mark.inc @@ -113,7 +113,7 @@ $OUTPUT->command('set_rowcount', rcmail_get_messagecount_text($msg_count), $mbox); if ($threading) { - $count = get_input_value('_count', RCUBE_INPUT_POST); + $count = get_input_value('_count', RCUBE_INPUT_POST); } // add new rows from next page (if any) @@ -125,9 +125,9 @@ } } } - - $OUTPUT->send(); +} +else { + $OUTPUT->show_message('internalerror', 'error'); } -exit; - +$OUTPUT->send(); -- Gitblit v1.9.1