Skip to content
Snippets Groups Projects
Commit 9526f481 authored by Niels's avatar Niels
Browse files

Remove an undefined warning when not yet logged in

parent 933b95b5
Branches
Tags release/polls/5.4.0
No related merge requests found
......@@ -77,7 +77,7 @@ class auth_plugin_authuffd extends DokuWiki_Auth_Plugin
global $USERINFO, $INPUT, $conf;
if (!empty($_SESSION[DOKU_COOKIE]['auth']) && $_SESSION[DOKU_COOKIE]['auth']['time'] < time() - $conf['auth_security_timeout'])
$this->clearSession();
if (!empty($_SESSION[DOKU_COOKIE]['auth']))
if (!empty($_SESSION[DOKU_COOKIE]['auth']) && !empty($_SESSION[DOKU_COOKIE]['auth']['info']))
{
$USERINFO['name'] = $_SESSION[DOKU_COOKIE]['auth']['info']['name'];
$USERINFO['mail'] = $_SESSION[DOKU_COOKIE]['auth']['info']['mail'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment