diff options
-rw-r--r-- | engine/lib/relationships.php | 3 |
1 files changed, 1 insertions, 2 deletions
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}"; |