From 242b010fc743d29b3fd0571311dabed996800720 Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 20 Feb 2009 14:40:17 +0000 Subject: isFriend() now retrieving userid correctly git-svn-id: https://code.elgg.org/elgg/trunk@2862 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine') diff --git a/engine/lib/users.php b/engine/lib/users.php index 66d740e4b..82ba38dde 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -232,7 +232,7 @@ * * @return true|false */ - function isFriend() { return user_is_friend($_SESSION['guid'], $this->getGUID()); } + function isFriend() { return user_is_friend(get_loggedin_userid(), $this->getGUID()); } /** * Determines whether this user is friends with another user -- cgit v1.2.3