Bugfix in UFC_Promo (no comparison with UserFilter::DISPLAY :/)
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Wed, 20 Jan 2010 18:54:30 +0000 (19:54 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 13 Feb 2010 23:30:47 +0000 (00:30 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
classes/userfilter.php

index aaa05ca..0892292 100644 (file)
@@ -81,7 +81,7 @@ class UFC_Promo implements UserFilterCondition
     {
         if ($this->grade == UserFilter::DISPLAY) {
             $sub = $uf->addDisplayFilter();
-            return XDB::format('pd' . $sub . '.promo = {?}', $this->promo);
+            return XDB::format('pd' . $sub . '.promo ' . $this->comparison . ' {?}', $this->promo);
         } else {
             $sub = $uf->addEducationFilter(true, $this->grade);
             $field = 'pe' . $sub . '.' . UserFilter::promoYear($this->grade);