Can't use method return value in write context error in forgotpass.php
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Unassigned | ||
15.04 |
Fix Released
|
Medium
|
Unassigned | ||
15.10 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Reported on the mahara.org forum, as a follow-up to Bug 1460911: https:/
"When we tried it on our server running php version 5.4.16 on Redhat 7.1, we get a blank page and the the error
PHP Fatal error: Can't use method return value in write context in /var/www/
Line 21 is:
if (!empty(
Looking into the issue I found http://
if ($SESSION-
Which if the answer in stackoverflow is correct should be the same as it was previously. After doing that no error is given and the page renders. Would this be the correct change for people that get that error?"
Summary: Need to remove the empty() check as the options for the variable 'pwchangerequested' is true/false
Changed in mahara: | |
milestone: | none → 15.10.0 |
importance: | Undecided → Medium |
status: | New → In Progress |
description: | updated |
description: | updated |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/4928