Notice with outside authentication and PHP8 #3455
Labels
Projects
Comments
This is not a PHP 8 issue. If $info['userinfo'] is null, array offset warning will be raised as far back as PHP 7.4. Guarding it with isset() seems prudent here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We get a notice with our Dokuwiki install with PHP8 :
Warning: Trying to access array offset on value of type null in /dokuwiki/inc/common.php on line 169
Adding a verification with an "isset" shoud do the trick, i.e on line 169 :
if(!isset($info['userinfo']['name']) or !$info['userinfo']['name']) {
The text was updated successfully, but these errors were encountered: