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 abba7fe78af4a9ddaea1e6723cdce5dd6207586a..f21d361ed388fca14c1e925bdc4906b72c1fac9f 100644 --- a/plugins/unl_theme/views/default/page_elements/unl_nav.php +++ b/plugins/unl_theme/views/default/page_elements/unl_nav.php @@ -72,7 +72,8 @@ if ($item->name == "Friends") { $user = get_loggedin_user(); - $count = elgg_get_entities_from_relationship('friendrequest', $user->guid, true, "", "", 0, "", 0, 0, true); + $options = ('relationship'=>'friendrequest', 'relationship_guid'=>$user->guid, 'inverse_relationship'=>true, 'count'=>true); + $count = elgg_get_entities_from_relationship($options); if(!empty($count)){ echo " <sup>" . $count . "</sup>";