Bugfix for Top Leaderboard

Bug fix for realease 1.3.11. When player cldgroup ending with group which is in exception.
This commit is contained in:
Arci224
2020-09-22 17:59:00 +02:00
parent 3ab200784d
commit 1f042f7837
3 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ $andnotgroup = '';
if($cfg['rankup_excepted_group_id_list'] != NULL) { if($cfg['rankup_excepted_group_id_list'] != NULL) {
foreach($cfg['rankup_excepted_group_id_list'] as $group => $value) { foreach($cfg['rankup_excepted_group_id_list'] as $group => $value) {
$notingroup .= "'".$group."',"; $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); $notingroup = substr($notingroup, 0, -1);
} else { } else {

View File

@@ -37,7 +37,7 @@ $andnotgroup = '';
if($cfg['rankup_excepted_group_id_list'] != NULL) { if($cfg['rankup_excepted_group_id_list'] != NULL) {
foreach($cfg['rankup_excepted_group_id_list'] as $group => $value) { foreach($cfg['rankup_excepted_group_id_list'] as $group => $value) {
$notingroup .= "'".$group."',"; $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); $notingroup = substr($notingroup, 0, -1);
} else { } else {

View File

@@ -37,7 +37,7 @@ $andnotgroup = '';
if($cfg['rankup_excepted_group_id_list'] != NULL) { if($cfg['rankup_excepted_group_id_list'] != NULL) {
foreach($cfg['rankup_excepted_group_id_list'] as $group => $value) { foreach($cfg['rankup_excepted_group_id_list'] as $group => $value) {
$notingroup .= "'".$group."',"; $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); $notingroup = substr($notingroup, 0, -1);
} else { } else {