From: Roland Häder Date: Wed, 28 Oct 2020 09:38:07 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ae115564170d880e36df22df8363320c46037a66;p=ctracker.git Continued: - should be "AND" Signed-off-by: Roland Häder --- diff --git a/libs/lib_connect.php b/libs/lib_connect.php index 2a6a366..a95c255 100644 --- a/libs/lib_connect.php +++ b/libs/lib_connect.php @@ -126,7 +126,7 @@ function crackerTrackerInsertArray ($table, array $rowData) { // Updates a given entry by just counting it up function updateCrackerTrackerEntry (array $rowData, $countColumn = 'count') { // Construct the SELECT query - $sqlString = 'UPDATE `ctracker_data` SET `' . $countColumn . '`=`' . $countColumn . '`+1 WHERE (`remote_addr`="' . crackerTrackerEscapeString($rowData['remote_addr']) . '" OR `proxy_addr`="' . crackerTrackerEscapeString($rowData['proxy_addr']) . '") LIMIT 1'; + $sqlString = 'UPDATE `ctracker_data` SET `' . $countColumn . '`=`' . $countColumn . '`+1 WHERE (`remote_addr`="' . crackerTrackerEscapeString($rowData['remote_addr']) . '" AND `proxy_addr`="' . crackerTrackerEscapeString($rowData['proxy_addr']) . '") LIMIT 1'; // Run the SQL and check if we have one line runCrackerTrackerSql($sqlString, __FUNCTION__, __LINE__);