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

diff --git a/Tv.php b/Tv.php
index 03a0041..ef87c95 100644 (file)
--- a/Tv.php
+++ b/Tv.php
@@ -251,7 +251,9 @@ class XML_Tv
             $cols = preg_split('/<td[^>]*>/i', $r);
             $rdata = array();
             
-            
+            if (!isset($cols[2])) {
+                continue;
+            }
             //PRINT_r($cols);
             $c= $cols[2];
              //var_dump($c);