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

diff --git a/Tv.php b/Tv.php
index 7bfa68b..682c4e0 100644 (file)
--- a/Tv.php
+++ b/Tv.php
@@ -113,7 +113,7 @@ class XML_Tv
             // kludge. = first monday of current week..
             // loook for... <BR>2007-12-31 Mon
             $start = preg_match('/<BR>([0-9]{4}-[0-9]{2}-[0-9]{2}) Mon/i', $odata, $matches);
-            $start = isset($matches[1]) ? 0; // first monday..
+            $start = isset($matches[1]) ? $matches[1] : 0; // first monday..
             
             $use_cols = 1;
             foreach($days as $i=>$ddata) {