Active
Project:
First login
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2016 at 16:57 UTC
Updated:
10 Mar 2016 at 16:57 UTC
Jump to comment: Most recent
I was getting the error when logging in with an existing user created before first_login was installed:
Notice: Undefined index: first_login in first_login_user_login() (line 96 of <path_to_drupal>/sites/all/modules/contrib/first_login/first_login.module).
This was resolved by changing out:
if ($account->data['first_login'] ===TRUE && isset($account->data['first_login']['count']) && $first_login['count'] > variable_get('first_login_num_of_logins', 1)) {
$first_login['status'] = FALSE;
}with
if (!empty($account->data['first_login']) && isset($account->data['first_login']['count']) && $first_login['count'] > variable_get('first_login_num_of_logins', 1)) {
$first_login['status'] = FALSE;
}Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| first_login-check-for-values-existence.patch | 932 bytes | merauluka |
Comments