aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/entities.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index a4df6fa02..f3ba92e92 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -665,7 +665,7 @@
$class = sanitise_string($class);
// Short circuit if no subtype is given
- if ($subtype2 == "")
+ if ($subtype == "")
return 0;
$id = get_subtype_id($type, $subtype);