Navigation Menu

Skip to content

Commit

Permalink
Suppress more PHP 5.4 warnings
Browse files Browse the repository at this point in the history
Closes #10504
  • Loading branch information
ex-nerd committed Jun 14, 2012
1 parent 0427785 commit 7232c54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion includes/sorting.php
Expand Up @@ -119,7 +119,7 @@ function sort_programs(&$programs, $session) {
function by_user_choice(&$a, &$b) {
foreach ($GLOBALS['user_sort_choice'] as $sort) {
$function = 'by_'.$sort['field'];
$response = $function(&$a, &$b);
$response = $function($a, $b);
// Identical response, go on to the next sort choice
if (!$response)
continue;
Expand Down
4 changes: 4 additions & 0 deletions modules/tv/schedules.php
Expand Up @@ -36,6 +36,10 @@
$schedule->profile = '';
$schedule->recgroup = '';
}
// Add a blank channel, to suppress warnings
if (!$schedule->channel) {
$schedule->channel = Channel::find(null);
}
// Add this show
$the_schedules[] = &$schedule;
}
Expand Down

0 comments on commit 7232c54

Please sign in to comment.