Skip to content
Snippets Groups Projects

Remove an undefined warning when not yet logged in

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -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'];
Loading