diff --git a/hwe/sammo/Event/Condition/Date.php b/hwe/sammo/Event/Condition/Date.php index 23acff06..d34261d3 100644 --- a/hwe/sammo/Event/Condition/Date.php +++ b/hwe/sammo/Event/Condition/Date.php @@ -50,13 +50,15 @@ class Date extends \sammo\Event\Condition{ } $lhs = [ - $this->year, - $this->month - ]; - $rhs = [ $this->year!==null?(int)$env['year']:null, $this->month!==null?(int)$env['month']:null ]; + + $rhs = [ + $this->year, + $this->month + ]; + $value = false; switch($this->cmp){