From 3f075f6c4df2186b94331c0b850206320fcdf57e Mon Sep 17 00:00:00 2001 From: tassium Date: Wed, 2 Jul 2003 20:09:54 +0000 Subject: [PATCH] Another patch from Alex to eliminate a notice with E_ALL. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5195 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_asearch.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/imap_asearch.php b/functions/imap_asearch.php index ed573c25..36d2a454 100644 --- a/functions/imap_asearch.php +++ b/functions/imap_asearch.php @@ -238,6 +238,9 @@ function sqimap_run_search($imapConnection, $search_string, $search_charset) echo ''; } + if (empty($messagelist)) + return array(); + $cnt = count($messagelist); for ($q = 0; $q < $cnt; $q++) $id[$q] = trim($messagelist[$q]); -- 2.25.1