mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-09 01:25:22 +01:00
fix Scrutinizer "bugs"
This commit is contained in:
parent
03ee5fccee
commit
7da7244a2b
@ -254,7 +254,12 @@ class Vfs extends File
|
||||
{
|
||||
$path .= Api\Vfs::encodePathComponent($filename);
|
||||
}
|
||||
if (!($dir = Api\Vfs::dirname($path)) || !Api\Vfs::file_exists($dir) && !Api\Vfs::mkdir($dir,null,STREAM_MKDIR_RECURSIVE))
|
||||
if (!($dir = Api\Vfs::dirname($path)))
|
||||
{
|
||||
self::set_validation_error($name,lang('Error create parent directory %1!', "dirname('$path') === false"));
|
||||
return false;
|
||||
}
|
||||
if (!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