From b11377b221af8a6fbc396d204d2dabc6af128a99 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 2 Feb 2009 17:14:53 +0000 Subject: Fixed bug in get_entities allowing for multiple subtypes. git-svn-id: https://code.elgg.org/elgg/trunk@2629 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engine/lib/entities.php') diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 31316383a..6bbec2169 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -1512,10 +1512,10 @@ $where = array(); - if (is_array($type)) { + if (is_array($subtype)) { $tempwhere = ""; - if (sizeof($type)) - foreach($type as $typekey => $subtypearray) { + if (sizeof($subtype)) + foreach($subtype as $typekey => $subtypearray) { foreach($subtypearray as $subtypeval) { $typekey = sanitise_string($typekey); if (!empty($subtypeval)) { -- cgit v1.2.3