From 27891f28039a86afa1531c2b373aab7588d04875 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 2 Apr 2009 10:18:05 +0000 Subject: [PATCH] making sure rows is an array in id2path --- phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php b/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php index a357d9c9cc..aedf07ae1d 100644 --- a/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php +++ b/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php @@ -1384,7 +1384,7 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper return false; // parent not found, should never happen ... } 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']] : '';