$user->roles[0]: Warning: Undefined array key 0
-
I have a latest WP installation with Google Authenticator plugin in version 0.54.
At my admin user account, when I switch off “Active” option for enabling/disabling Authenticator in my Profile settings like this (for other users it’s enabled):
Then I get this message:
Warning: Undefined array key 0 in C:\3w\unyp2022.loc\wp-content\plugins\google-authenticator\google-authenticator.php on line 221
It’s because of this portion of code:
My returned array $user->roles returns following:
Array ( [35] => administrator [36] => revisor )
The [0] index si not defined.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘$user->roles[0]: Warning: Undefined array key 0’ is closed to new replies.