small bugfix, thanks Prasong Aroonruviwat
authorjmunro <jmunro@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 10 Apr 2002 05:17:34 +0000 (05:17 +0000)
committerjmunro <jmunro@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 10 Apr 2002 05:17:34 +0000 (05:17 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2705 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/search.php

index 27fe5ca7590fd58d2924f4da7c6e18c99f43ba74..a31a5c9b28be240f544bd9fee02fec833ccff87b 100644 (file)
@@ -391,11 +391,11 @@ if ($search_all == 'all') {
     }
     for ($i=0;$i<count($perbox_count);$i++) {
         if ($perbox_count[$i] != "") {
-           break;
+            $count_all = "found";
+            break;
         }
-        $count_all = "none";
     }
-    if ($count_all == "none") {
+    if ($count_all != "found") {
         echo '<br><b>' .
              _("No Messages found") .
              '</b><br>';