Explorar o código

Authentication - Database: Resolve PHP 8.1 warning when using API Key login.

fusionate %!s(int64=2) %!d(string=hai) anos
pai
achega
5d99862bcd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/authentication/resources/classes/plugins/database.php

+ 1 - 1
core/authentication/resources/classes/plugins/database.php

@@ -155,7 +155,7 @@ class plugin_database {
 			$auth->get_domain();
 			$this->domain_uuid = $_SESSION['domain_uuid'];
 			$this->domain_name = $_SESSION['domain_name'];
-			$this->username = $_SESSION['username'];
+			$this->username = $_SESSION['username'] ?? null;
 
 		//debug information
 			//echo "domain_uuid: ".$this->domain_uuid."<br />\n";