From 9526f481cfa531e9d427929151cb6dcfd8534d1b Mon Sep 17 00:00:00 2001
From: Niels <niels=sso.cccv.de@bakker.net>
Date: Sun, 4 Feb 2024 19:50:30 +0000
Subject: [PATCH] Remove an undefined warning when not yet logged in

---
 auth.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/auth.php b/auth.php
index e188785..8f03d31 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'];
-- 
GitLab