projects
/
lib.XML_Tv
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad93208
)
Tv.php
author
Alan Knowles
<alan@akbkhome.com>
Sat, 29 Oct 2011 12:35:29 +0000
(20:35 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Sat, 29 Oct 2011 12:35:29 +0000
(20:35 +0800)
Tv.php
patch
|
blob
|
history
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;