From: Michael M Slusarz Date: Thu, 20 Nov 2008 19:45:11 +0000 (-0700) Subject: phpdoc X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9b236f5306c90822aab49ced11f9987e93f04439;p=horde.git phpdoc --- diff --git a/imp/lib/IMP.php b/imp/lib/IMP.php index 86c8ff295..77988ca29 100644 --- a/imp/lib/IMP.php +++ b/imp/lib/IMP.php @@ -857,16 +857,15 @@ class IMP */ static public function parseIndicesList($indices) { - $msgList = array(); - if (!is_array($indices) || empty($indices)) { return array(); } + $msgList = array(); + reset($indices); if (!is_array(current($indices))) { - /* Build the list of indices/mailboxes to delete if input - is of format #1. */ + /* Build the list of indices/mailboxes if input is format #1. */ foreach ($indices as $msgIndex) { if (strpos($msgIndex, IMP::IDX_SEP) === false) { return false;