PHP Fatal error: Cannot use object of type stdClass as array in /password_policy.module on line 225
GrimSage - June 5, 2009 - 15:03
| Project: | Password policy |
| Version: | 6.x-1.0-alpha2 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
Need to change line 225 from
if ($policy && ($account->uid > 1 || PASSWORD_POLICY_ADMIN) && !empty($edit['name'])) {
to
if ($policy && ($account->uid > 1 || PASSWORD_POLICY_ADMIN) && !empty($edit->name)) {

#1
The $edit variable is an array, not the object, http://api.drupal.org/api/function/hook_user/6
#2
Can you describe what you were doing that caused the error? What you were doing on what page?