aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'";