From 69c15a42319139a4b7348a8e6e7d614c18fad0da Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sat, 29 Oct 2011 20:23:58 +0800 Subject: [PATCH] Tv.php --- Tv.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tv.php b/Tv.php index 7fac72b..730b0ea 100644 --- 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; -- 2.39.2