소스 검색

If the extension or dialplan xml directories are disabled or don't exist don't add sub directories.

Mark Crane 13 년 전
부모
커밋
e434889d94
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      core/upgrade/app_defaults.php

+ 3 - 1
core/upgrade/app_defaults.php

@@ -27,7 +27,9 @@
 if (strlen($_SESSION['switch']['scripts']['dir']) > 0) {
 
 	//if the resource scripts resource directory does not exist then create it
-		if (!is_dir($_SESSION['switch']['scripts']['dir']."/resources")) { mkdir($_SESSION['switch']['scripts']['dir']."/resources",0755,true); }
+		if (strlen($_SESSION['switch']['scripts']['dir']) > 0) {
+			if (!is_dir($_SESSION['switch']['scripts']['dir']."/resources")) { mkdir($_SESSION['switch']['scripts']['dir']."/resources",0755,true); }
+		}
 
 	//get odbc information
 		$sql = "select count(*) as num_rows from v_databases ";