소스 검색

Quick fix for #846

causefx 8 년 전
부모
커밋
2550192496
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      api/functions/api-functions.php

+ 3 - 0
api/functions/api-functions.php

@@ -91,6 +91,9 @@ function login($array)
 function createDB($path, $filename)
 {
     try {
+	    if (!file_exists($path)) {
+		    mkdir($path, 0777, true);
+	    }
         $createDB = new Dibi\Connection([
             'driver' => 'sqlite3',
             'database' => $path.$filename,