From a19661199e97b4ec27d664872d952165359c27c7 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 29 Apr 2018 23:13:49 +0900 Subject: [PATCH] =?UTF-8?q?Date=EC=9D=98=20=EB=B9=84=EA=B5=90=20=EB=8C=80?= =?UTF-8?q?=EC=83=81=20lhs,=20rhs=EA=B0=80=20=EB=B0=94=EB=80=90=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Event/Condition/Date.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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){