From: jangliss Date: Mon, 14 Apr 2003 18:21:44 +0000 (+0000) Subject: Empty $mailbox causes sent append to break. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=247f700e6abc81178f2041b3b7e57f2341fb524e;p=squirrelmail.git Empty $mailbox causes sent append to break. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4767 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index f13bae91..bb46e6f3 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -188,7 +188,7 @@ function sqimap_mailbox_expunge ($imap_stream, $mailbox, $handle_errors = true, /* Checks whether or not the specified mailbox exists */ function sqimap_mailbox_exists ($imap_stream, $mailbox) { - if (!isset($mailbox)) { + if (!isset($mailbox) || empty($mailbox)) { return false; } $mbx = sqimap_run_command($imap_stream, "LIST \"\" \"$mailbox\"",