* Changed some regexps into string matches and the like
[squirrelmail.git] / functions / imap_search.php
index 993a23aa2d420d56b1a1e40569e5455cc29a145e..a86ddc7b190a4d656c89c97ad127b34b3311c9af 100644 (file)
@@ -85,7 +85,7 @@ function sqimap_search($imapConnection,$search_where,$search_what,$mailbox,$colo
 
       $j = 0;
       while ($j < count($messagelist)) {
-         $date[$j] = ereg_replace("  ", " ", $date[$j]);
+         $date[$j] = ereg_replace('  ', ' ', $date[$j]);
          $tmpdate = explode(" ", trim($date[$j]));
 
          $messages[$j]["TIME_STAMP"] = getTimeStamp($tmpdate);