making sure rows is an array in id2path

This commit is contained in:
Klaus Leithoff 2009-04-02 10:18:05 +00:00
parent dd5376c41f
commit 27891f2803

View File

@ -1384,7 +1384,7 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper
return false; // parent not found, should never happen ... return false; // parent not found, should never happen ...
} }
if (self::LOG_LEVEL > 1) error_log(__METHOD__." trying foreach with:".print_r($rows,true)."#"); if (self::LOG_LEVEL > 1) error_log(__METHOD__." trying foreach with:".print_r($rows,true)."#");
foreach($rows as $fs_id => $row) foreach((array)$rows as $fs_id => $row)
{ {
$parent = $row['fs_dir'] > 1 ? $parents[$row['fs_dir']] : ''; $parent = $row['fs_dir'] > 1 ? $parents[$row['fs_dir']] : '';