Update database.php

Only use the $_SESSION['domain_uuid'] if it is set. It's not set when using from the command line.
This commit is contained in:
FusionPBX
2020-10-21 15:17:38 -06:00
committed by GitHub
parent c2bf8cf761
commit c8e51bd89e
+1 -1
View File
@@ -62,7 +62,7 @@ include "root.php";
* Called when the object is created * Called when the object is created
*/ */
public function __construct() { public function __construct() {
if (!isset($this->domain_uuid)) { if (!isset($this->domain_uuid) && isset($_SESSION['domain_uuid'])) {
$this->domain_uuid = $_SESSION['domain_uuid']; $this->domain_uuid = $_SESSION['domain_uuid'];
} }
} }