mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 01:18:42 +01:00
add missing false-test mentioned by Scrutinizer
This commit is contained in:
parent
0ca2094e2e
commit
2fbafeaa27
@ -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
|
$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];
|
$props[$path] =& $props[$id];
|
||||||
unset($props[$id]);
|
unset($props[$id]);
|
||||||
|
Loading…
Reference in New Issue
Block a user