Hi. It looks like the following query is returning zero results. When that happens $result is not an array so foreach() throws a warning. As soon as the query returns greater than zero results, the warning should go away. Thanks for pointing it out. It's something to tweak in a future release.
PHP Code:
$query = 'SELECT DATE_FORMAT(l_ts,\\'%H:00') as hour,
round(avg(l_time),2) as avg_time,
count(l_id) as num_queries
FROM '.PHPDIG_DB_PREFIX.'logs
WHERE l_time > 0
GROUP BY hour';
$result = phpdigMySelect($id_connect,$query);