summary refs log tree commit diff stats
path: root/includes/comments.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/comments.php')
-rwxr-xr-xincludes/comments.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/comments.php b/includes/comments.php index f1b8228..3a64321 100755 --- a/includes/comments.php +++ b/includes/comments.php
@@ -45,7 +45,7 @@ while ($getcomments3[$i] = mysql_fetch_array($getcomments2))
45{ 45{
46 if ($getcomments3[$i]['is_anon'] == 0) 46 if ($getcomments3[$i]['is_anon'] == 0)
47 { 47 {
48 $getuser = "SELECT * FROM phpbb_users WHERE username = \"" . $getcomments3[$i]['username'] . "\""; 48 $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . $getcomments3[$i]['user_id'];
49 $getuser2 = mysql_query($getuser); 49 $getuser2 = mysql_query($getuser);
50 $getuser3 = mysql_fetch_array($getuser2); 50 $getuser3 = mysql_fetch_array($getuser2);
51 51
@@ -54,11 +54,11 @@ while ($getcomments3[$i] = mysql_fetch_array($getcomments2))
54 $website = $getuser3['user_website']; 54 $website = $getuser3['user_website'];
55 } else if ($getcomments3[$i]['is_anon'] == 1) 55 } else if ($getcomments3[$i]['is_anon'] == 1)
56 { 56 {
57 $getanon = "SELECT * FROM anon_commenters WHERE username = \"" . $getcomments3[$i]['username'] . "\""; 57 $getanon = "SELECT * FROM anon_commenters WHERE id = " . $getcomments3[$i]['user_id'];
58 $getanon2 = mysql_query($getanon); 58 $getanon2 = mysql_query($getanon);
59 $getanon3 = mysql_fetch_array($getanon2); 59 $getanon3 = mysql_fetch_array($getanon2);
60 60
61 if ($getanon3['username'] == $getcomments3[$i]['username']) 61 if ($getanon3['id'] == $getcomments3[$i]['user_id'])
62 { 62 {
63 $username = $getanon3['username'] . ' (Guest)'; 63 $username = $getanon3['username'] . ' (Guest)';
64 $email = $getanon3['email']; 64 $email = $getanon3['email'];