aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/filestore.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-05 14:45:02 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-05 14:45:02 +0000
commit31c42efb3fad99bef4916cfedfc99395ebfb087f (patch)
tree9d072b13d388b15d849627ecb17a7eab6b790d71 /engine/lib/filestore.php
parentd3c19623a40a7ea45baf21f91629bafbc5eb0faa (diff)
downloadelgg-31c42efb3fad99bef4916cfedfc99395ebfb087f.tar.gz
elgg-31c42efb3fad99bef4916cfedfc99395ebfb087f.tar.bz2
Fixed a foreach bug.
git-svn-id: https://code.elgg.org/elgg/trunk@803 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/filestore.php')
-rw-r--r--engine/lib/filestore.php3
1 files changed, 2 insertions, 1 deletions
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)