Commit 15041adf authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1504335: Foreach loop error when no data to display"

parents dbe40064 6077e81d
......@@ -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