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 {