Using mythplugins 0.20a I get the following php error on the recording statistics page of mythweb:<br><br><b>Error</b> at /srv/www/htdocs/mythweb/modules/stats/tmpl/default/stats.php, line 87:<br>Invalid argument supplied for foreach()
<br><br><b>Error</b> at /srv/www/htdocs/mythweb/modules/stats/tmpl/default/stats.php, line 114:<br>Invalid argument supplied for foreach()<br><br>It appears to be because $top_ten_shows and $top_ten_chans are not set. I added a check and right before the foreach loop isset($top_ten_shows) returns false. This is most probably because I have no shows recorded and haven&#39;t used mythtv yet. Infact the same page displays:
<br><br><dl><dt>First recording: Wednesday December 31st, 1969</dt></dl>To fix the problem, I just added an if (isset($top_ten_shows) { .. } and if (isset($top_ten_chans) { ... } surrounding each foreach loop. I&#39;m not sure that is the best fix but I just wanted to let the developers know.
<br><br>Thanks,<br>Kareem<br><br>