Merge branch 'fixed_bad_function_in_mr_system' into 'develop'

Fixed bad bucle

See merge request !350
This commit is contained in:
vgilc 2017-04-06 17:56:57 +02:00
commit 976c02c653
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/";