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

-