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)
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

miglius - June 12, 2009 - 11:30

The $edit variable is an array, not the object, http://api.drupal.org/api/function/hook_user/6

#2

deekayen - June 14, 2009 - 08:04
Status:active» postponed (maintainer needs more info)

Can you describe what you were doing that caused the error? What you were doing on what page?

 
 

Drupal is a registered trademark of Dries Buytaert.