diff --git a/auth.php b/auth.php
index e188785b6dfeafec502358525e5e4c634989cc1f..8f03d310dd42659ba77e4d99a3f59c98e540a978 100644
--- a/auth.php
+++ b/auth.php
@@ -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'];