From d443d437fa0559a367ae860c348e26b236969fee Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 30 Apr 2008 13:31:04 +0000 Subject: get_entities returns false if the subtype name couldn't be found. git-svn-id: https://code.elgg.org/elgg/trunk@579 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engine/lib/entities.php') 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; -- cgit v1.2.3