]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes test for $relationship_guid in sql generating function
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 6 Jan 2011 01:11:00 +0000 (01:11 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 6 Jan 2011 01:11:00 +0000 (01:11 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7845 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/relationships.php

index 123778d8900489117226746ac297844920c7c78a..39d7cc745a26f84f506dbe9a46977e87f443a386 100644 (file)
@@ -300,7 +300,7 @@ function elgg_get_entities_from_relationship($options) {
 function elgg_get_entity_relationship_where_sql($column, $relationship = NULL,
 $relationship_guid = NULL, $inverse_relationship = FALSE) {
 
-       if ($relationship == NULL && $entity_guid == NULL) {
+       if ($relationship == NULL && $relationship_guid == NULL) {
                return '';
        }