Fix admin search on IP
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Tue, 22 Jun 2010 22:07:04 +0000 (00:07 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Tue, 22 Jun 2010 22:07:04 +0000 (00:07 +0200)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
include/ufbuilder.inc.php

index 9385cb1..37fa29b 100644 (file)
@@ -487,8 +487,7 @@ class UFBF_Quick extends UFB_Field
         if (S::admin() && strpos($s, '@') !== false) {
             return new UFC_Email($s);
         } else if (S::admin() && preg_match('/[0-9]+\.([0-9]+|%)\.([0-9]+|%)\.([0-9]+|%)/', $s)) {
-            $this->conds->addChild(new UFC_Ip($s));
-            return;
+            return new UFC_Ip($s);
         }
 
         $conds = new PFC_And();