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

diff --git a/Tv.php b/Tv.php
index 2384e38..e073673 100644 (file)
--- a/Tv.php
+++ b/Tv.php
@@ -128,7 +128,12 @@ class XML_Tv
                      $use_cols =0;
                     continue;
                 }
-                $this->schedule[$chid][strtotime($start) + (($i *  $use_cols ) * 24 * 60 * 60 )]  = $res;
+                $day_id = strtotime($start) + (($i *  $use_cols ) * 24 * 60 * 60 );
+                
+                if (empty($this->schedule[$chid][$day_id])) {
+                    $this->schedule[$chid][$day_id] = array();
+                }
+                $this->schedule[$chid][$day_id] += $res; 
             }
             return;