Date의 비교 대상 lhs, rhs가 바뀐 버그 수정

This commit is contained in:
2018-04-29 23:13:49 +09:00
parent 953196ec78
commit a19661199e
+6 -4
View File
@@ -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){