From 70ddcd9a4ad318d3e5233712af30fa2dcf92ab61 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 5 Mar 2009 14:08:09 +0000 Subject: Error in subtype detection git-svn-id: https://code.elgg.org/elgg/trunk@3092 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine/lib/entities.php') 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'"; -- cgit v1.2.3