A bit clearer null interpretation
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 14 Jul 2009 20:38:33 +0000 (14:38 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 14 Jul 2009 21:15:09 +0000 (15:15 -0600)
imp/lib/Search.php

index 04615a4..7a113c1 100644 (file)
@@ -619,7 +619,7 @@ class IMP_Search
      */
     static public function isSearchMbox($id)
     {
-        return (strpos($id, null) !== false);
+        return (strpos($id, "\0") !== false);
     }
 
     /**