Another patch from Alex to eliminate a notice with E_ALL.
authortassium <tassium@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 2 Jul 2003 20:09:54 +0000 (20:09 +0000)
committertassium <tassium@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 2 Jul 2003 20:09:54 +0000 (20:09 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5195 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_asearch.php

index ed573c258fffce74c4b3bfcdbc4c21b9d43ad1c6..36d2a4540ba8821804b955b73a1a3d95df1f97d5 100644 (file)
@@ -238,6 +238,9 @@ function sqimap_run_search($imapConnection, $search_string, $search_charset)
                echo '<!-- ' . htmlspecialchars($errors) . ' -->';
        }
 
+       if (empty($messagelist))
+               return array();
+
        $cnt = count($messagelist);
        for ($q = 0; $q < $cnt; $q++)
                $id[$q] = trim($messagelist[$q]);