Replaced ereg_replace with str_replace on several occasions, should be faster.
[squirrelmail.git] / functions / mailbox_display.php
index 1a304005bd4e146f772bb3f8b11aef5eb3a8519c..b8ee23f3fddc757b540519a7f4f910bc900991d8 100644 (file)
@@ -266,7 +266,7 @@ function showMessagesForMailbox
 
         while ($j < $end_loop) {
             if (isset($date[$j])) {
-                $date[$j] = ereg_replace('  ', ' ', $date[$j]);
+                $date[$j] = str_replace('  ', ' ', $date[$j]);
                 $tmpdate = explode(' ', trim($date[$j]));
             } else {
                 $tmpdate = $date = array('', '', '', '', '', '');