From a86dd9c535dba4ff5985744e24c42db78d274213 Mon Sep 17 00:00:00 2001 From: icewing Date: Thu, 8 May 2008 23:28:42 +0000 Subject: Marcus Povey * BUGFIX: Moved shortcut so that subtype of "" doesn't cause fail. git-svn-id: https://code.elgg.org/elgg/trunk@636 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 480a08b66..a2d3bf48e 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -826,11 +826,11 @@ { global $CONFIG; + if ($subtype === false || $subtype === null || $subtype === 0) + return false; + $type = sanitise_string($type); $subtype = get_subtype_id($type, $subtype); - - if ($subtype === false || $subtype === null || $subtype === 0) - return false; $order_by = sanitise_string($order_by); $limit = (int)$limit; -- cgit v1.2.3