Browse Source

Quick fix for #846

causefx 8 năm trước cách đây
mục cha
commit
2550192496
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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,