diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-30 13:31:04 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-30 13:31:04 +0000 |
commit | d443d437fa0559a367ae860c348e26b236969fee (patch) | |
tree | aa65cb80f3b7064f5cd8e14e2628cca1d75c49b8 /engine/lib | |
parent | c1f8c6378f37e2cac408731b07008a345c3ced8f (diff) | |
download | elgg-d443d437fa0559a367ae860c348e26b236969fee.tar.gz elgg-d443d437fa0559a367ae860c348e26b236969fee.tar.bz2 |
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
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/entities.php | 6 |
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; |