Fix advanced search with 'alive' / 'dead' criterion
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 31 Jul 2010 11:11:16 +0000 (13:11 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 31 Jul 2010 11:11:16 +0000 (13:11 +0200)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
include/ufbuilder.inc.php

index 59a8aec..5924bf4 100644 (file)
@@ -682,7 +682,7 @@ class UFBF_Dead extends UFBF_Enum
     protected function buildUFC(UserFilterBuilder &$ufb)
     {
         if ($this->val == 1) {
-            return new PFC_Not(UFC_Dead());
+            return new PFC_Not(new UFC_Dead());
         } else if ($this->val == 2) {
             return new UFC_Dead();
         }