diff --git a/stats/top_all.php b/stats/top_all.php index 0ddb0b6..bc01a9c 100644 --- a/stats/top_all.php +++ b/stats/top_all.php @@ -16,7 +16,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 65c7b3f..e1e7a74 100644 --- a/stats/top_month.php +++ b/stats/top_month.php @@ -16,7 +16,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 682f802..a774920 100644 --- a/stats/top_week.php +++ b/stats/top_week.php @@ -16,7 +16,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 {