aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/metadata.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-01 10:53:23 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-01 10:53:23 +0000
commit2141c3b97f04763581b91e6ae16d09e0f803b35c (patch)
tree84945974c3d50e53ea772b5d375c4a612504173d /engine/lib/metadata.php
parentd82fa1fc19c054ff8d11ddc7385cc58c1b2822ce (diff)
downloadelgg-2141c3b97f04763581b91e6ae16d09e0f803b35c.tar.gz
elgg-2141c3b97f04763581b91e6ae16d09e0f803b35c.tar.bz2
Closes #389
git-svn-id: https://code.elgg.org/elgg/trunk@2158 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/metadata.php')
-rw-r--r--engine/lib/metadata.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php
index 376c6ecdd..5fe854894 100644
--- a/engine/lib/metadata.php
+++ b/engine/lib/metadata.php
@@ -485,7 +485,7 @@
if ($order_by == "") $order_by = "e.time_created desc";
$order_by = sanitise_string($order_by);
$site_guid = (int) $site_guid;
- if (is_array($owner_guid)) {
+ if ((is_array($owner_guid) && (count($owner_guid)))) {
foreach($owner_guid as $key => $guid) {
$owner_guid[$key] = (int) $guid;
}