Commit 6077e81d authored by Robert Lyon's avatar Robert Lyon

Bug 1504335: Foreach loop error when no data to display

On the site statistics group tab for mysql sites

behatnotneeded: This is a warning error that shows only before first
cron run

Change-Id: I779f786dfeb636004d1fbf5816f81eb4eb61c106
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent c90f6b10
......@@ -2083,7 +2083,7 @@ function graph_site_data_weekly($type = null) {
WHERE ctime >= ? AND type IN (?,?,?)
ORDER BY ctime, type', $values);
if (!count($weekly) > 1) {
if ($weekly === false || !count($weekly) > 1) {
return false;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment