Improve previous fix

This commit is contained in:
Bofh 2022-12-29 00:22:58 +01:00
parent 15487b57f2
commit ee5eb1af0e
1 changed files with 3 additions and 1 deletions

View File

@ -179,7 +179,9 @@ function filedb_getdir($ns, $file='') {
$ns = trim($ns, '/'); $ns = trim($ns, '/');
$_ = realpath($dir.'/'.$ns); $_ = realpath($dir.'/'.$ns);
if ($_ === false) { if ($_ === false) {
mkdir($dir.'/'.$ns); $_ = filedb_put($ns);
if ($_ === false)
return false;
$_ = realpath($dir.'/'.$ns); $_ = realpath($dir.'/'.$ns);
} }
$dir = $_; $dir = $_;