Skip to content

Commit

Permalink
Update comment.php
Browse files Browse the repository at this point in the history
Fix for IP Anonymization
  • Loading branch information
eSilverStrike committed Jan 5, 2022
1 parent ca898b7 commit 5f2c9ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public_html/admin/comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function ADMIN_getListField_comments($fieldName, $fieldValue, $A, $iconArray, $s
$encoding = COM_getEncodingt();
}

$commentId = $A['cid'];
$commentId = $A['cid'];

switch ($fieldName) {
case 'selector':
Expand Down Expand Up @@ -324,7 +324,7 @@ function ADMIN_buildCommentList($suffix, $tableName, $securityToken)

$queryArray = array(
'table' => $tableName,
'sql' => "SELECT c.type, c.sid, c.date, c.title, c.comment, c.uid, i.ipaddress FROM " . $_TABLES[$tableName] . " AS c "
'sql' => "SELECT c.cid, c.type, c.sid, c.date, c.title, c.comment, c.name, c.uid, i.ipaddress FROM " . $_TABLES[$tableName] . " AS c "
. "LEFT JOIN {$_TABLES['ip_addresses']} AS i "
. "ON c.seq = i.seq "
. "WHERE (1 = 1) ",
Expand Down

0 comments on commit 5f2c9ab

Please sign in to comment.