From 31c42efb3fad99bef4916cfedfc99395ebfb087f Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 5 Jun 2008 14:45:02 +0000 Subject: Fixed a foreach bug. git-svn-id: https://code.elgg.org/elgg/trunk@803 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/filestore.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine') diff --git a/engine/lib/filestore.php b/engine/lib/filestore.php index 0c8e5f121..603293413 100644 --- a/engine/lib/filestore.php +++ b/engine/lib/filestore.php @@ -511,7 +511,8 @@ // If filestore meta set then retrieve filestore TODO: Better way of doing this? $metas = get_metadata_for_entity($this->guid); - $parameters = array(); + $parameters = array(); + if (is_array($metas)) foreach ($metas as $meta) { if (strpos($meta->name, "filestore::")!==false) -- cgit v1.2.3