aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-20 14:40:17 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-20 14:40:17 +0000
commit242b010fc743d29b3fd0571311dabed996800720 (patch)
tree149b22cd94f1851e14743fbec00ba6ef67efb686 /engine
parent4f1b7f0620484b9d24757826a65218e94ff2822f (diff)
downloadelgg-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')
-rw-r--r--engine/lib/users.php2
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