diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-02 17:14:53 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-02 17:14:53 +0000 |
commit | b11377b221af8a6fbc396d204d2dabc6af128a99 (patch) | |
tree | f2b0404f9acfacecf30a9dd8b857ff170c23f2cb | |
parent | e703b966d94c281e3e3fda0cbba5ffbc7f313a70 (diff) | |
download | elgg-b11377b221af8a6fbc396d204d2dabc6af128a99.tar.gz elgg-b11377b221af8a6fbc396d204d2dabc6af128a99.tar.bz2 |
Fixed bug in get_entities allowing for multiple subtypes.
git-svn-id: https://code.elgg.org/elgg/trunk@2629 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/entities.php | 6 |
1 files changed, 3 insertions, 3 deletions
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)) { |