Ugly fix for the > UNIXTIME(NULL) stuff.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 1 Jul 2010 08:09:07 +0000 (10:09 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 1 Jul 2010 08:26:07 +0000 (10:26 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
include/notifs.inc.php

index 3e173e9..045adee 100644 (file)
@@ -70,6 +70,7 @@ class WatchProfileUpdate extends WatchOperation
 
     public $flag  = 'profile';
     public $title = 'Mise$s à jour de fiche';
+    private $date = null;
 
     public static function register(Profile &$profile, $field)
     {
@@ -80,6 +81,7 @@ class WatchProfileUpdate extends WatchOperation
 
     protected function buildCondition(Watch $watch)
     {
+        $this->date = $watch->date();
         return new PFC_And(new UFC_ProfileUpdated('>', $watch->date()),
                            $watch->contactCondition());
     }