瀏覽代碼

Update check_auth.php

FusionPBX 6 年之前
父節點
當前提交
18e8a5c9e2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      resources/check_auth.php

+ 1 - 1
resources/check_auth.php

@@ -259,7 +259,7 @@
 			}
 			}
 
 
 		//get the domains
 		//get the domains
-			if (file_exists($_SERVER["PROJECT_ROOT"]."/app/domains/app_config.php")){
+			if (file_exists($_SERVER["PROJECT_ROOT"]."/app/domains/app_config.php") && !is_cli()){
 				require_once "app/domains/resources/domains.php";
 				require_once "app/domains/resources/domains.php";
 			}
 			}