diff --git a/plugins/unl_theme/views/default/page_elements/unl_nav.php b/plugins/unl_theme/views/default/page_elements/unl_nav.php index c81efcfd01b28c9932745893ad7b2527b9e4ed1d..bf3eda7df43dd7097997e9368a789e6fc6ebef68 100644 --- a/plugins/unl_theme/views/default/page_elements/unl_nav.php +++ b/plugins/unl_theme/views/default/page_elements/unl_nav.php @@ -72,8 +72,7 @@ if ($item->name == "Friends") { $user = get_loggedin_user(); - $options = ('relationship'=>'friendrequest', 'inverse_relationship'=>true, 'count'=>true); - $options['relationship_guid'] = $user->guid; + $options = array('relationship'=>'friendrequest', 'relationship_guid'=>$user->guid, 'inverse_relationship'=>true, 'count'=>true); $count = elgg_get_entities_from_relationship($options); if(!empty($count)){