From 2141c3b97f04763581b91e6ae16d09e0f803b35c Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 1 Oct 2008 10:53:23 +0000 Subject: Closes #389 git-svn-id: https://code.elgg.org/elgg/trunk@2158 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/metadata.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib/metadata.php') 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; } -- cgit v1.2.3