From e494c6fea5d9eb5714849c21d5452c6179f4373d Mon Sep 17 00:00:00 2001 From: icewing Date: Tue, 20 May 2008 15:44:04 +0000 Subject: Marcus Povey * Fixed strange regression in get_entities, now returns all stuff even if subtype is blank. git-svn-id: https://code.elgg.org/elgg/trunk@661 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib') diff --git a/engine/lib/entities.php b/engine/lib/entities.php index a2d3bf48e..8a73b381a 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -845,7 +845,7 @@ if ($type != "") $where[] = "type='$type'"; - if ($subtype !== "") + if ($subtype) $where[] = "subtype=$subtype"; if ($owner_guid != "") { if (!is_array($owner_guid)) { -- cgit v1.2.3