Skip to content

Commit 6692410

Browse files
committed
fix: ensure default permissions are set when creating database directory
1 parent f299bc5 commit 6692410

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/core/Json/Db.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function createDatabase($name = '')
5555
$path = $this->path . DIRECTORY_SEPARATOR . $name;
5656

5757
if (!is_dir($path)) {
58-
return mkdir($path, config_item('json_db_dir_permissions'), true);
58+
return mkdir($path, config_item('json_db_dir_permissions') ?: 0755, true);
5959
}
6060

6161
return true;

0 commit comments

Comments
 (0)