﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
10142	Prevent PHP warning in upcoming.php due to wrong datatype in foreach	Philipp Wagner <mail@…>	Rob Smith	"At /tv/upcoming I get the following PHP warning:

----------
Warning at /usr/share/mythtv/mythweb/modules/tv/upcoming.php, line 96:
!!NoTrans: Invalid argument supplied for foreach()!!

Warning at /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/header.php, line 16:
!!NoTrans: Cannot modify header information - headers already sent by (output started at /usr/share/mythtv/mythweb/includes/errors.php:150)!!
----------

It seems that the code tried to prevent that, but somehow it didn't get a full fix ($scheduled is unused). Trivial patch attached.

I am running 0.24.1 here, but it seems that the code is the same in the git master."	Patch - Bug Fix	closed	minor	0.27	Plugin - MythWeb	Master Head	medium	fixed			1
