|
@@ -150,7 +150,7 @@ class Info
|
|
|
$time = date('Hi');
|
|
|
$worktime = str_replace(':', '', $data['worktime']);
|
|
|
$temp = explode('~', $worktime);
|
|
|
- if ($time < $temp[0] || $time > $temp[1]) {
|
|
|
+ if (isset($temp[0]) && isset($temp[1]) && ($time < $temp[0] || $time > $temp[1])) {
|
|
|
$data['open'] = 2;
|
|
|
}
|
|
|
}
|