Closed (fixed)
Project:
Email Registration
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2008 at 08:24 UTC
Updated:
11 Feb 2009 at 23:02 UTC
In my setup, just after installing the module, I get a fatal error (Unsopported operand types).
This is because in email_registration_form_alter(), when you sum up the #validate form field, you don't check if the current #validate is null or not (In my case it is). I simpy use a cast to (array), that way:
$form['#validate'] = array('email_registration_user_login_validate' => array()) + (array)$form['#validate'];
Comments
Comment #1
Christopher Herberte commented