Created
June 16, 2014 15:35
-
-
Save azhurb/ab2a5f3967c3bd6cc868 to your computer and use it in GitHub Desktop.
Fix EPG start time (issue #4185)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: server/lib/epg.class.php | |
| IDEA additional info: | |
| Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
| <+>UTF-8 | |
| =================================================================== | |
| --- server/lib/epg.class.php (revision 08772adb8e4997da0e6318585b78e2252e6c609c) | |
| +++ server/lib/epg.class.php (revision ) | |
| @@ -351,16 +351,6 @@ | |
| if (!array_key_exists($date, $this->cleaned_epg[$itv_id]) || $this->cleaned_epg[$itv_id][$date] > $real_date){ | |
| $this->cleaned_epg[$itv_id] = array($date => $real_date); | |
| - $need_to_delete = Mysql::getInstance() | |
| - ->from('epg') | |
| - ->where(array( | |
| - 'ch_id' => $itv_id, | |
| - 'time>=' => $real_from, | |
| - 'time<' => $to | |
| - )) | |
| - ->get() | |
| - ->all('id'); | |
| - | |
| $last_program = Mysql::getInstance() | |
| ->from('epg') | |
| ->where(array( | |
| @@ -379,6 +369,16 @@ | |
| array('id' => $last_program['id']) | |
| ); | |
| } | |
| + | |
| + $need_to_delete = Mysql::getInstance() | |
| + ->from('epg') | |
| + ->where(array( | |
| + 'ch_id' => $itv_id, | |
| + 'time>=' => $real_from, | |
| + 'time<' => $to | |
| + )) | |
| + ->get() | |
| + ->all('id'); | |
| return $need_to_delete; | |
| } | |
| \ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment