[mythtv-users] fix for problem with mythweb and scheduled recordings after updating channel database

Jeff jeff at intersystems.com
Mon Jan 3 12:20:51 EST 2005


Using mythtvsetup I cleared my program/channel settings
and then reloaded the data from DataDirect. This was to
force mythtvsetup to update my channel listings to bring
them in sync with changes made by my cable provider.

I assume there's some invalid recording left dangling in my
database because I got an error from the "Scheduled Recordings" page
on mythweb. I'm running MythTV 0.16.

Adding a test of $tmp before the foreach loop in programs.php, resolves this.

[root at tvsrv includes]# diff -P programs.php~ programs.php
307c307,308
<                 foreach (get_object_vars($tmp) as $key => $value) {
---
>                 if ($tmp) {
>                 foreach (get_object_vars($tmp) as $key => $value) {
308a310
>                 }
[root at tvsrv includes]# 



More information about the mythtv-users mailing list