fix Scrutinizer "bugs"

This commit is contained in:
Ralf Becker 2016-07-02 13:59:49 +02:00
parent 0949bae0dc
commit 230ec19265

View File

@ -557,7 +557,7 @@ class StreamWrapper extends Api\Db\Pdo implements Vfs\StreamWrapperIface
}
if (!$parent_stat || !($stat = self::url_stat($path,STREAM_URL_STAT_LINK)) ||
!Vfs::check_access($dir, Vfs::WRITABLE, $parent_stat))
!$dir || !Vfs::check_access($dir, Vfs::WRITABLE, $parent_stat))
{
self::_remove_password($url);
if (self::LOG_LEVEL) error_log(__METHOD__."($url) permission denied!");