Forgot global ;)
authoralex-brainstorm <alex-brainstorm@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 29 Jul 2003 10:24:20 +0000 (10:24 +0000)
committeralex-brainstorm <alex-brainstorm@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 29 Jul 2003 10:24:20 +0000 (10:24 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5468 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_asearch.php

index 7a515cec585c1a1d7c7c953c5ce9a868587dceb6..df6209ccadd79814971bf71115596b3304884754 100644 (file)
@@ -92,6 +92,7 @@ function sqimap_asearch_error_box($response, $query, $message)
        if (function_exists('sqimap_error_box'))
                sqimap_error_box($title, $query, $message_title, $message);
        else {  //Straight copy of 1.5 imap_general.php:sqimap_error_box(). Can be removed at a later time
+               global $color;
     require_once(SM_PATH . 'functions/display_messages.php');
     $string = "<font color=$color[2]><b>\n" . $title . "</b><br>\n";
     if ($query != '')
@@ -153,8 +154,8 @@ function sqimap_asearch_encode_string($what, $charset)
                $what = mb_convert_encoding($what, 'JIS', 'auto');
 //if (ereg("[\"\\\r\n\x80-\xff]", $what))
        if (preg_match('/["\\\\\r\n\x80-\xff]/', $what))
-               return '{' . strlen($what) . "}\r\n" . $what;   /* 4.3 literal form */
-       return '"' . $what . '"';       /* 4.3 quoted string form */
+               return '{' . strlen($what) . "}\r\n" . $what;   // 4.3 literal form
+       return '"' . $what . '"';       // 4.3 quoted string form
 }
 
 /*