瀏覽代碼

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 年之前
父節點
當前提交
2bf1e1be01
共有 1 個文件被更改,包括 1 次插入1 次删除
  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'];
 				}
 			}