aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-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