Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added a guard against invalid programs that start before the last pro…

…gram ended
  • Loading branch information...
commit 8aa362324b41adc6734ec24d133aceb134274f7b 1 parent 8a82159
Jay Merrifield authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  modules/tv/tmpl/default/list_data.php
4  modules/tv/tmpl/default/list_data.php
@@ -61,6 +61,10 @@
61 61
         $program_list = load_program_list($list_starttime, $list_endtime);
62 62
 
63 63
         foreach ($program_list as $program) {
  64
+			if ($last_chan_id == $program->chanid && $program->starttime < $program_ends){
  65
+				//this is a guard against invalid programs that start before the last program ends
  66
+				continue;
  67
+			}
64 68
         // Get a modified start/end time for this program (in case it starts/ends outside of the aloted time
65 69
             $program_starts = $program->starttime;
66 70
             $program_ends   = $program->endtime;

0 notes on commit 8aa3623

Please sign in to comment.
Something went wrong with that request. Please try again.