From 1f042f78371aa12f3db4af96a0509119ce4c30b2 Mon Sep 17 00:00:00 2001 From: Arci224 Date: Tue, 22 Sep 2020 17:59:00 +0200 Subject: [PATCH] Bugfix for Top Leaderboard Bug fix for realease 1.3.11. When player cldgroup ending with group which is in exception. --- stats/top_all.php | 2 +- stats/top_month.php | 2 +- stats/top_week.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stats/top_all.php b/stats/top_all.php index 1ff44bf..433d604 100644 --- a/stats/top_all.php +++ b/stats/top_all.php @@ -37,7 +37,7 @@ $andnotgroup = ''; if($cfg['rankup_excepted_group_id_list'] != NULL) { foreach($cfg['rankup_excepted_group_id_list'] as $group => $value) { $notingroup .= "'".$group."',"; - $andnotgroup .= " AND `u`.`cldgroup` NOT LIKE ('".$group.",%') AND `u`.`cldgroup` NOT LIKE ('%,".$group.",%')"; + $andnotgroup .= " AND `u`.`cldgroup` NOT LIKE ('%,".$group."') AND `u`.`cldgroup` NOT LIKE ('%,".$group.",%') AND `u`.`cldgroup` NOT LIKE ('".$group.",%')"; } $notingroup = substr($notingroup, 0, -1); } else { diff --git a/stats/top_month.php b/stats/top_month.php index 090c8e9..1fb00b6 100644 --- a/stats/top_month.php +++ b/stats/top_month.php @@ -37,7 +37,7 @@ $andnotgroup = ''; if($cfg['rankup_excepted_group_id_list'] != NULL) { foreach($cfg['rankup_excepted_group_id_list'] as $group => $value) { $notingroup .= "'".$group."',"; - $andnotgroup .= " AND `u`.`cldgroup` NOT LIKE ('".$group.",%') AND `u`.`cldgroup` NOT LIKE ('%,".$group.",%')"; + $andnotgroup .= " AND `u`.`cldgroup` NOT LIKE ('%,".$group."') AND `u`.`cldgroup` NOT LIKE ('%,".$group.",%') AND `u`.`cldgroup` NOT LIKE ('".$group.",%')"; } $notingroup = substr($notingroup, 0, -1); } else { diff --git a/stats/top_week.php b/stats/top_week.php index a78d9fb..05068ba 100644 --- a/stats/top_week.php +++ b/stats/top_week.php @@ -37,7 +37,7 @@ $andnotgroup = ''; if($cfg['rankup_excepted_group_id_list'] != NULL) { foreach($cfg['rankup_excepted_group_id_list'] as $group => $value) { $notingroup .= "'".$group."',"; - $andnotgroup .= " AND `u`.`cldgroup` NOT LIKE ('".$group.",%') AND `u`.`cldgroup` NOT LIKE ('%,".$group.",%')"; + $andnotgroup .= " AND `u`.`cldgroup` NOT LIKE ('%,".$group."') AND `u`.`cldgroup` NOT LIKE ('%,".$group.",%') AND `u`.`cldgroup` NOT LIKE ('".$group.",%')"; } $notingroup = substr($notingroup, 0, -1); } else {