Submitter: Robert Lyon (
Branch:    18.04_STABLE

commit 8c81c1364b380df7a13932562d86ff1a155559d2
Author: Robert Lyon <>
Date:   Tue Apr 3 13:18:45 2018 +1200

Bug 1760742: Error when changing a group from standard to course

When there are no blogposts made


Change-Id: I7a3b2bed818c66fd4edef188ed7ba475e54c3a4c
Signed-off-by: Robert Lyon <>
(cherry picked from commit 087cb93d80038d9b2a9452197f0c2264d8668610)

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 forum before editing or unsubscribing it!

  Empty foreach() error when switching a group from standard to course

Status in Mahara:
  Fix Committed
Status in Mahara 17.04 series:
  Fix Committed
Status in Mahara 17.10 series:
  Fix Committed
Status in Mahara 18.04 series:
  Fix Committed
Status in Mahara 18.10 series:
  Fix Committed

Bug description:
  We get the following error
  AR] f6 (lib/group.php:714) Invalid argument supplied for foreach()
  Call stack (most recent first):

      log_message("Invalid argument supplied for foreach()", 8, true, true, 
"/home/robertl/code/mahara-devel/mahara/htdocs/lib/...", 714) at 
      error(2, "Invalid argument supplied for foreach()", 
"/home/robertl/code/mahara-devel/mahara/htdocs/lib/...", 714, array(size 9)) at 
      group_update(object(stdClass)) at 
      editgroup_submit(object(Pieform), array(size 31)) at 
      Pieform->__construct(array(size 4)) at 
      Pieform::process(array(size 4)) at 
      pieform(array(size 4)) at 

To manage notifications about this bug go to:

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to