From: tokul Date: Sat, 1 Jul 2006 16:52:15 +0000 (+0000) Subject: $query is also used when $responce !='NO'. Fixed undefined notice error. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9cda618e7c24ed4c27f91b5d23fa01ce61060b16;p=squirrelmail.git $query is also used when $responce !='NO'. Fixed undefined notice error. Reported by Benny Pedersen. Can't understand how he managed to reach that sqm_trigger_imap_error call. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11339 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/plugins/filters/filters.php b/plugins/filters/filters.php index 23fb6884..f27ff130 100644 --- a/plugins/filters/filters.php +++ b/plugins/filters/filters.php @@ -393,8 +393,8 @@ function filter_search_and_delete($imap_stream, $where, $what, $where_to, $user_ sqimap_msgs_list_move ($imap_stream, $ids, $where_to, false); } } elseif ($response != 'OK') { + $query = $search_str . "\r\n".$what ."\r\n"; if ($response == 'NO') { - $query = $search_str . "\r\n".$what ."\r\n"; if (strpos($message,'BADCHARSET') !== false || strpos($message,'character') !== false) { sqm_trigger_imap_error('SQM_IMAP_BADCHARSET',$query, $response, $message);