Next/previous is working a bit better
[squirrelmail.git] / functions / mailbox.php3
index bb7a00a..4508e41 100644 (file)
             $read = substr($read, strpos($read, "FLAGS")+6, strlen($read));
             $read = trim($read);
             $flags = explode(" ", $read);;
-            $i = 0;
-            while ($i < count($flags)) {
-               $flags[$i] = substr($flags[$i], 1, strlen($flags[$i]));
-               $i++;
+            $s = 0;
+            while ($s < count($flags)) {
+               $flags[$s] = substr($flags[$s], 1, strlen($flags[$s]));
+               $s++;
             }
          } else {
             $flags[0] = "None";