aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-30 13:31:04 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-30 13:31:04 +0000
commitd443d437fa0559a367ae860c348e26b236969fee (patch)
treeaa65cb80f3b7064f5cd8e14e2628cca1d75c49b8
parentc1f8c6378f37e2cac408731b07008a345c3ced8f (diff)
downloadelgg-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
-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;