mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #50702
[Bug 1799852] A patch has been submitted for review
Patch for "master" branch: https://reviews.mahara.org/9273
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1799852
Title:
View site statistics has error if there are no blocks
Status in Mahara:
New
Bug description:
If you install a new site and go to
http://mahara/admin/users/statistics.php when there are no blocks
saved, you see
"Invalid argument supplied for foreach()",
"~/code/mahara/htdocs/lib/stati...", 210, array(size 18)) at
~code/mahara/htdocs/lib/statistics.php:210, referer:
http://mahara/admin/index.php
There is an invalid argument in this case as the value of $blocktypecounts is false and the code says:
foreach ($blocktypecounts as $blocktype) {
...get the details...
}
We should put it in an if statement to avoid the error.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1799852/+subscriptions
References