mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #30632
[Bug 1509153] Re: Warning message on pages with comments disabled
This will be fixed for 15.04 in patch
https://reviews.mahara.org/#/c/5509/
It has already been fixed for 15.10, 16.04
The problem was the $access foreach loop didn't actually check that
access rows existed on the page or not.
** Changed in: mahara/16.04
Status: Incomplete => Invalid
** Changed in: mahara/15.10
Status: Incomplete => Invalid
** Changed in: mahara/15.04
Status: Confirmed => Invalid
--
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/1509153
Title:
Warning message on pages with comments disabled
Status in Mahara:
Invalid
Status in Mahara 15.04 series:
Invalid
Status in Mahara 15.10 series:
Invalid
Status in Mahara 16.04 series:
Invalid
Bug description:
1. Create a page
2. Disable comments on that page
3. View the page
Expected result: The page views fine
Actual result: The page views fine, but with this warning message printed:
[WAR] 72 (lib/view.php:5853) Invalid argument supplied for foreach()
Call stack (most recent first):
log_message("Invalid argument supplied for foreach()", 8, true, true, "/home/aaronw/www/mahara/htdocs/lib/view.php", 5853) at /home/aaronw/www/mahara/htdocs/lib/errors.php:441
error(2, "Invalid argument supplied for foreach()", "/home/aaronw/www/mahara/htdocs/lib/view.php", 5853, array(size 14)) at /home/aaronw/www/mahara/htdocs/lib/view.php:5853
View->user_comments_allowed(object(LiveUser)) at /home/aaronw/www/mahara/htdocs/view/view.php:200
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1509153/+subscriptions
References