Browse Source

Update database.php

Only use the $_SESSION['domain_uuid'] if it is set. It's not set when using from the command line.
FusionPBX 4 years ago
parent
commit
2bf1e1be01
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/classes/database.php

+ 1 - 1
resources/classes/database.php

@@ -62,7 +62,7 @@ include "root.php";
 			 * Called when the object is created
 			 */
 			public function __construct() {
-				if (!isset($this->domain_uuid)) {
+				if (!isset($this->domain_uuid) && isset($_SESSION['domain_uuid'])) {
 					$this->domain_uuid = $_SESSION['domain_uuid'];
 				}
 			}