diff --git a/webapp/controller/OtherController.class.php b/webapp/controller/OtherController.class.php index 1f61f301..2866b135 100644 --- a/webapp/controller/OtherController.class.php +++ b/webapp/controller/OtherController.class.php @@ -360,7 +360,7 @@ class OtherController extends BaseAuthedController { $nowTimeOffset = myself()->_getDaySecondsOffset(myself()->_getNowTime()); $temp['daily_open_time_2'] = strtotime($modeMeta['daily_open_time_2']) ; $temp['daily_end_time_2'] = strtotime($modeMeta['daily_end_time_2']); - $temp['state2'] = $nowTimeOffset >= $dailyOpenTimeOffset && $nowTimeOffset <= $dailyEndTimeOffset ? 1 : 0; + $temp['state'] = $nowTimeOffset >= $dailyOpenTimeOffset && $nowTimeOffset <= $dailyEndTimeOffset ? 1 : 0; } $isOpen = mt\MapMode::isOpen($modeMeta);