Tv.php
authorAlan Knowles <alan@akbkhome.com>
Sat, 29 Oct 2011 12:36:38 +0000 (20:36 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sat, 29 Oct 2011 12:36:38 +0000 (20:36 +0800)
Tv.php

diff --git a/Tv.php b/Tv.php
index 3efad93..f92c1be 100644 (file)
--- a/Tv.php
+++ b/Tv.php
@@ -128,6 +128,9 @@ class XML_Tv
                      $use_cols =0;
                     continue;
                 }
+                if (!is_array($res)) {
+                    continue;
+                }
                 $day_id = strtotime($start) + (($i *  $use_cols ) * 24 * 60 * 60 );
                 
                 if (empty($this->schedule[$chid][$day_id])) {