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

diff --git a/Tv.php b/Tv.php
index 7fac72b..730b0ea 100644 (file)
--- a/Tv.php
+++ b/Tv.php
@@ -236,10 +236,13 @@ class XML_Tv
         if ($day == '2011-10-29') {
             //$this->debug(print_r($rows,true));
         }
+        if ($day < date('Y-m-d')) {
+            return array();
+        }
         //$this->debug($day);
         //$this->debug(print_r($rows,true));
     //return; 
-        array_shift($rows);
+        array_shift($rows-);
         
         
         $day = false;