Fatal Error

GrimSage - May 27, 2009 - 12:59
Project:Remember me
Version:6.x-2.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Fatal error: Cannot use object of type stdClass as array in remember_me/remember_me.module on line 80

change
$remember_me = isset($edit['remember_me']) ? $edit['remember_me'] : NULL;
to
$remember_me = isset($edit->remember_me) ? $edit->remember_me : NULL;

#1

spatz4000 - May 27, 2009 - 13:11
Status:active» needs review

And a patch

AttachmentSize
remember_me-474184.patch 819 bytes

#2

joelstein - July 31, 2009 - 20:48
Status:needs review» closed

I don't know why you are getting a fatal error. The $edit argument is supposed to be an array (as indicated in the documentation), not an object. I'm marking this as closed.

 
 

Drupal is a registered trademark of Dries Buytaert.