add missing false-test mentioned by Scrutinizer

This commit is contained in:
Ralf Becker 2016-10-20 09:07:31 +02:00
parent 0ca2094e2e
commit 2fbafeaa27

View File

@ -1906,9 +1906,9 @@ class StreamWrapper extends Api\Db\Pdo implements Vfs\StreamWrapperIface
{
$props = $props[$row['fs_id']] ? $props[$row['fs_id']] : array(); // return empty array for no props
}
elseif ($props && isset($stat)) // need to map fs_id's to pathes
elseif ($props && isset($stat) && ($id2path = self::id2path(array_keys($props)))) // need to map fs_id's to pathes
{
foreach(self::id2path(array_keys($props)) as $id => $path)
foreach($id2path as $id => $path)
{
$props[$path] =& $props[$id];
unset($props[$id]);