From ce24d5d0805b86c242708248d7e77301f9b610d5 Mon Sep 17 00:00:00 2001 From: Git Date: Thu, 11 Feb 2016 08:00:29 +0000 Subject: [PATCH] Empty commit --- sections/friends/friends.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sections/friends/friends.php b/sections/friends/friends.php index 0cfaf976..7007e51b 100644 --- a/sections/friends/friends.php +++ b/sections/friends/friends.php @@ -21,6 +21,8 @@ $Select = "f.FriendID"; $Where = "f.UserID = '$UserID'"; +$Join1 = "f.FriendID = m.ID"; +$Join2 = "f.FriendID = i.UserID"; @@ -40,8 +42,8 @@ m.LastAccess, i.Avatar FROM friends AS f - JOIN users_main AS m ON f.FriendID = m.ID - JOIN users_info AS i ON f.FriendID = i.UserID + JOIN users_main AS m ON $Join1 + JOIN users_info AS i ON $Join2 WHERE $Where ORDER BY Username LIMIT $Limit"); @@ -57,7 +59,7 @@

Friends List

-