Ticket #11463: tv-schedules.php.patch

File tv-schedules.php.patch, 610 bytes (added by Kevin Dalley <kevin@…>, 13 years ago)
Line 
1*** /usr/share/mythweb/modules/tv/schedules.php.orig 2012-06-05 09:05:32.935946957 +0200
2--- /usr/share/mythweb/modules/tv/schedules.php 2012-06-05 09:05:36.633022229 +0200
3***************
4*** 47,52 ****
5--- 47,56 ----
6 if (count($the_schedules))
7 sort_programs($the_schedules, 'schedules_sortby');
8
9+ // Hack: Disable warnings about "Creating default
10+ // object from empty value" from below line
11+ // "$schedule->channel->name = '[ '.t('Any').' ]';"
12+ ini_set('error_reporting', E_ERROR);
13 // Load the class for this page
14 require_once tmpl_dir.'schedules.php';
15