Skip to content

Commit a4231b8

Browse files
authored
Avoid warning in do=check for anonymous users
fixes dokuwiki#3984
1 parent fef6508 commit a4231b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/infoutils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ function check(){
258258
msg('Debugging support is disabled',1);
259259
}
260260

261-
if($INFO['userinfo']['name']){
261+
if(!empty($INFO['userinfo']['name'])){
262262
msg('You are currently logged in as '.$INPUT->server->str('REMOTE_USER').' ('.$INFO['userinfo']['name'].')',0);
263263
msg('You are part of the groups '.implode(', ', $INFO['userinfo']['grps']),0);
264264
}else{

0 commit comments

Comments
 (0)