dever 6 lat temu
rodzic
commit
17953de01e
1 zmienionych plików z 8 dodań i 5 usunięć
  1. 8 5
      live/lib/Cron.php

+ 8 - 5
live/lib/Cron.php

@@ -44,12 +44,15 @@ class Cron
                     $url = explode('/', $v[$video['url_m3u8']]);
                     $index = count($url)-1;
                     $date = explode('_', str_replace('.m3u8', '', $url[$index]));
-                    if ($date[0] != $v[$video['sdate']]) {
-                        $state = true;
-                    }
-                    if ($date[1] != $v[$video['edate']]) {
-                        $state = true;
+                    if (isset($date[0]) && isset($date[1])) {
+                        if ($date[0] != $v[$video['sdate']]) {
+                            $state = true;
+                        }
+                        if ($date[1] != $v[$video['edate']]) {
+                            $state = true;
+                        }
                     }
+                    
                 } else {
                     $state = true;
                 }