From 9b236f5306c90822aab49ced11f9987e93f04439 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 20 Nov 2008 12:45:11 -0700 Subject: [PATCH] phpdoc --- imp/lib/IMP.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; -- 2.11.0