aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/entities.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 9d4e9c538..0fcca87f5 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -802,7 +802,11 @@
global $CONFIG;
$type = sanitise_string($type);
- $subtype = get_subtype_id($type, $subtype);
+ $subtype = get_subtype_id($type, $subtype);
+
+ if ($subtype === false)
+ return false;
+
$order_by = sanitise_string($order_by);
$limit = (int)$limit;
$offset = (int)$offset;