From fdbadf1661698da8e1380d214de02df837c97b7d Mon Sep 17 00:00:00 2001 From: indiri69 Date: Wed, 30 Nov 2005 18:21:31 +0000 Subject: [PATCH] Create $aCriteria to prevent a notice later on if there is nothing in it git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10423 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_asearch.php | 1 + 1 file changed, 1 insertion(+) diff --git a/functions/imap_asearch.php b/functions/imap_asearch.php index 1f3176b7..0db279c0 100644 --- a/functions/imap_asearch.php +++ b/functions/imap_asearch.php @@ -436,6 +436,7 @@ function sqimap_asearch($imapConnection, &$mailbox_array, &$biop_array, &$unop_a $search_string = ''; } if (isset($where_array[$cur_crit]) && empty($exclude_array[$cur_crit])) { + $aCriteria = array(); for ($crit = $cur_crit; $crit < count($where_array); $crit++) { $criteria = trim(sqimap_asearch_build_criteria($where_array[$crit], $what_array[$crit], $search_charset)); if (!empty($criteria) && empty($exclude_array[$crit])) { -- 2.25.1