diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-20 14:40:17 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-20 14:40:17 +0000 |
commit | 242b010fc743d29b3fd0571311dabed996800720 (patch) | |
tree | 149b22cd94f1851e14743fbec00ba6ef67efb686 /engine/lib | |
parent | 4f1b7f0620484b9d24757826a65218e94ff2822f (diff) | |
download | elgg-242b010fc743d29b3fd0571311dabed996800720.tar.gz elgg-242b010fc743d29b3fd0571311dabed996800720.tar.bz2 |
isFriend() now retrieving userid correctly
git-svn-id: https://code.elgg.org/elgg/trunk@2862 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/users.php | 2 |
1 files changed, 1 insertions, 1 deletions
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
|