I found that when a user created an account by logging in for the first time via openID three notices were displayed.
Notice: Undefined index: values in openid_form_user_register_alter() (line 132 of /Path/To/Drupal/modules/openid/openid.module).
Notice: Undefined index: values in openid_form_user_register_alter() (line 133 of /Path/To/Drupal/modules/openid/openid.module).
Notice: Undefined index: values in openid_form_user_register_alter() (line 140 of /Path/To/Drupal/modules/openid/openid.module).
This patch prevents that from happening. I don't think it breaks anything.
This patch just changes one test performed in openid_form_user_register_alter().
| Comment | File | Size | Author |
|---|---|---|---|
| openID-prevent-php-notices.patch | 918 bytes | tizzo |
Comments
Comment #1
tizzo commentedMarking this Quick Fix at Crell's recommendation. Will wait on this patch for the patch I'm working on for DBTNG here - #394488.
Comment #2
cburschkaWarning: isset($variable['key_one']['key_two']) /will/ trigger a notice if $variable['key_one'] isn't set. So be sure $_SESSION['openid'] is always defined.
I would suggest
Comment #3
c960657 commentedDuplicate of #230934: Undefined index when creating account via OpenID.