Fix bug with the 'nonins' parameter for search
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 1 Mar 2010 14:59:37 +0000 (15:59 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 1 Mar 2010 15:05:20 +0000 (16:05 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
include/userset.inc.php

index 55647df..18d1ee6 100644 (file)
@@ -98,8 +98,8 @@ class SearchSet extends ProfileSet
 
         if (S::logged() && Env::has('nonins')) {
             $this->conds = new PFC_And($this->conds,
-                new PFC_Not(new UFC_Dead()),
-                new UFC_Registered()
+                new UFC_Not(new UFC_Dead()),
+                new UFC_Not(new UFC_Registered())
             );
         }