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,