aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-05 14:08:09 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-05 14:08:09 +0000
commit70ddcd9a4ad318d3e5233712af30fa2dcf92ab61 (patch)
tree6d1f5ea5e178817f3fe80a5dfe04ac54984424fb /engine/lib/entities.php
parentc6ece320ee290116df03018d5dc1c1be413cfe04 (diff)
downloadelgg-70ddcd9a4ad318d3e5233712af30fa2dcf92ab61.tar.gz
elgg-70ddcd9a4ad318d3e5233712af30fa2dcf92ab61.tar.bz2
Error in subtype detection
git-svn-id: https://code.elgg.org/elgg/trunk@3092 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 6f0bad1e6..b56f97dab 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -1545,7 +1545,8 @@
} else {
$type = sanitise_string($type);
- $subtype = get_subtype_id($type, $subtype);
+ if ($subtype !== "")
+ $subtype = get_subtype_id($type, $subtype);
if ($type != "")
$where[] = "type='$type'";