mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
fix some scrutinizer "bugs"
This commit is contained in:
parent
b103dd23a6
commit
903b14f45d
@ -254,7 +254,7 @@ class Vfs extends File
|
||||
{
|
||||
$path .= Api\Vfs::encodePathComponent($filename);
|
||||
}
|
||||
if (!Api\Vfs::file_exists($dir = Api\Vfs::dirname($path)) && !Api\Vfs::mkdir($dir,null,STREAM_MKDIR_RECURSIVE))
|
||||
if (!($dir = Api\Vfs::dirname($path)) || !Api\Vfs::file_exists($dir) && !Api\Vfs::mkdir($dir,null,STREAM_MKDIR_RECURSIVE))
|
||||
{
|
||||
self::set_validation_error($name,lang('Error create parent directory %1!',Api\Vfs::decodePath($dir)));
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user