X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fuserset.inc.php;h=a7fe264393e5338234f632fb2df89df37b7e4cfc;hb=83353c716cfbfee0acdd353005a6548fd657e40e;hp=8c6040f96903da81c63d64eeeddbb1654099667b;hpb=d1e6167749fdad08c81e23d09e1bbbf76e3b989b;p=platal.git diff --git a/include/userset.inc.php b/include/userset.inc.php index 8c6040f..a7fe264 100644 --- a/include/userset.inc.php +++ b/include/userset.inc.php @@ -26,7 +26,7 @@ class UserSet extends PlSet public function __construct($cond = null) { $this->cond = new UFC_And(); - if (!is_null($cond)) { + if (!is_null($cond) && ($cond instanceof UserFilterCondition)) { $this->cond->addChild($cond); } }