Improve previous fix
This commit is contained in:
parent
15487b57f2
commit
ee5eb1af0e
4
base.php
4
base.php
|
@ -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 = $_;
|
||||||
|
|
Loading…
Reference in New Issue