aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-02 17:14:53 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-02 17:14:53 +0000
commitb11377b221af8a6fbc396d204d2dabc6af128a99 (patch)
treef2b0404f9acfacecf30a9dd8b857ff170c23f2cb /engine
parente703b966d94c281e3e3fda0cbba5ffbc7f313a70 (diff)
downloadelgg-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
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/entities.php6
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)) {