Parse error: syntax error, unexpected ''login_submitted''
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Robert Lyon | ||
16.10 |
Fix Released
|
High
|
Unassigned |
Bug Description
Hi
I'm trying a clean install of Mahara 16.10.0 on a server running PHP 5.4 and I'm getting this error.
Parse error: syntax error, unexpected ''login_submitted'' (T_CONSTANT_
Looking at the code I think there might have been a copy and paste error as you cannot check for empty('
Function below.
Kevin
/**
* Called when the login form is being validated during submission.
* Checks the user and password fields are filled in.
*
* @param object $form The Pieform form object
* @param array $values The submitted values
*/
function login_validate(
if (!empty(
if (empty(
}
}
}
description: | updated |
Changed in mahara: | |
importance: | Undecided → Medium |
importance: | Medium → High |
assignee: | nobody → Robert Lyon (robertl-9) |
milestone: | none → 17.04.0 |
status: | New → In Progress |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/7212