Skip to content
Snippets Groups Projects
Commit dbef68f7 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

elgg 1.7 now uses an $options array as parameter, update our stuff accordingly

parent a2d18233
No related branches found
No related tags found
No related merge requests found
......@@ -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>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment