[mythtv-users] MythWeb on a different box
Ian Goldberg
ian at cypherpunks.ca
Tue Jul 8 18:37:12 EDT 2003
On Mon, 07 Jul 2003 20:03:04 -0400, David A. Mason wrote:
> It's improved, but I'm seeing this, now, on the "Recorded Programs"
> page:
>
> Warning: Invalid argument supplied for foreach() in
> /var/www/html/mythtv/recorded.php on line 79
>
> Referring to this context:
>
> // Get total recording time
> $total_length = 0;
> foreach($prog_length as $t => $v) {
> $total_length = $total_length + $prog_length[$t];
> }
> }
> Bug report?
I got this, too. It happens when you've got no recorded programs.
To fix it, add
$prog_length = array();
before the line that says:
foreach($recs as $t => $v)
[I sent a patch in to thor instead of this list by mistake. But I
notice it's been committed to the current CVS.]
- Ian
More information about the mythtv-users
mailing list