dever %!s(int64=3) %!d(string=hai) anos
pai
achega
4ee0e4affb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/shop/lib/Info.php

+ 1 - 1
app/shop/lib/Info.php

@@ -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;
             }
         }