A first batch of tests of the UserFilter.
[platal.git] / classes / userfilter.php
index ad6fc26..4458cca 100644 (file)
@@ -46,7 +46,8 @@ class UFC_HasProfile implements UserFilterCondition
 {
     public function buildCondition(PlFilter &$uf)
     {
-        return '$PID IS NOT NULL';
+        $uf->requireProfiles();
+        return 'p.pid IS NOT NULL';
     }
 }
 // }}}
@@ -1810,6 +1811,7 @@ class UserFilter extends PlFilter
         return $this->getUsers($limit);
     }
 
+
     public function getTotalCount()
     {
         if (is_null($this->lastcount)) {