Fixed bad bucle

This commit is contained in:
Arturo Gonzalez 2017-04-06 17:38:05 +02:00
parent 3d506d2967
commit df42f2a26b
1 changed files with 12 additions and 10 deletions

View File

@ -140,17 +140,19 @@ if (is_ajax ()) {
}
if ($remove_rr) {
$number = get_parameter('number');
$numbers = get_parameter('number',0);
for ($i = 1; $i <= $number; $i++) {
$file = $config["homedir"] . "/extras/mr/$i.sql";
if (file_exists($file)) {
unlink($file);
}
}
return;
}
foreach ($numbers as $number) {
for ($i = 1; $i <= $number; $i++) {
$file = $config["homedir"] . "/extras/mr/$i.sql";
if (file_exists($file)) {
unlink($file);
}
}
}
return;
}
if ($remove_rr_extras) {
$dir = $config["homedir"] . "/extras/mr/";