← Back to team overview

mahara-contributors team mailing list archive

[Bug 1800961] A change has been merged

 

Reviewed:  https://reviews.mahara.org/9282
Committed: https://git.mahara.org/mahara/mahara/commit/8053afeb2289ff1c88b95dc52361f4e4379f0fc1
Submitter: Robert Lyon (robertl@xxxxxxxxxxxxxxx)
Branch:    18.10_STABLE

commit 8053afeb2289ff1c88b95dc52361f4e4379f0fc1
Author: Cecilia Vela Gurovic <ceciliavg@xxxxxxxxxxxxxxx>
Date:   Thu Nov 1 14:01:13 2018 +1300

Bug 1800961: php foreach should only be used on arrays

trying to use any other type of variable will
throw an exception.
Also, block types and view types should not be
nested in the template

behatnotneeded

Change-Id: I1ea1e3fc9e7ba7734e1b5712467678c001806e65
(cherry picked from commit b7c588549b6da9eca1632974ea0c5bc42b26451f)

-- 
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/1800961

Title:
  reports page displays error message with an empty DB

Status in Mahara:
  Fix Committed
Status in Mahara 18.10 series:
  Fix Committed
Status in Mahara 19.04 series:
  Fix Committed

Bug description:
  To replicate:
  Install a new site in a clean database
  go to Admin menu-> Reports

  as the database is new, there is no data for the statistics and the following error is displayed
  [WAR] 9b (lib/statistics.php:209) Invalid argument supplied for foreach()

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1800961/+subscriptions


References