add missing traversable-test mentioned by Scrutinizer

This commit is contained in:
Ralf Becker 2016-10-20 10:17:20 +02:00
parent 8e9fe8d87d
commit 39d432d82a

View File

@ -1906,7 +1906,7 @@ 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) && ($id2path = self::id2path(array_keys($props)))) // need to map fs_id's to pathes
elseif ($props && isset($stat) && is_array($id2path = self::id2path(array_keys($props)))) // need to map fs_id's to pathes
{
foreach($id2path as $id => $path)
{