Selaa lähdekoodia

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

fusionate 2 vuotta sitten
vanhempi
commit
5d99862bcd
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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";