From c9ada1c0365a31d1340f603df5b4b8bd933dad14 Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 4 Sep 2009 11:01:52 +0000 Subject: Patch submitted for ticket #886 rolled back as it was causing #1205 -> #886 will need further investigating git-svn-id: https://code.elgg.org/elgg/trunk@3462 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/relationships.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engine/lib/relationships.php') diff --git a/engine/lib/relationships.php b/engine/lib/relationships.php index 47ab619d6..27a9917ba 100644 --- a/engine/lib/relationships.php +++ b/engine/lib/relationships.php @@ -511,8 +511,7 @@ $relationship_guid = (int)$relationship_guid; $inverse_relationship = (bool)$inverse_relationship; $type = sanitise_string($type); - if ($subtype AND !$subtype = get_subtype_id($type, $subtype)) - return false; + $subtype = get_subtype_id($type, $subtype); $owner_guid = (int)$owner_guid; if ($order_by == "") $order_by = "time_created desc"; else $order_by = "time_created, {$order_by}"; -- cgit v1.2.3