Clean mr folder before um process

This commit is contained in:
Arturo Gonzalez 2017-03-21 13:29:06 +01:00
parent a8e1cdba8f
commit f6b7c5ce19
1 changed files with 7 additions and 3 deletions

View File

@ -141,10 +141,14 @@ if (is_ajax ()) {
if ($remove_rr) {
$number = get_parameter('number');
$file = $config["homedir"] . "/extras/mr/$number.sql";
if (file_exists($file)) {
unlink($file);
for ($i = 1; $i <= $number; $i++) {
$file = $config["homedir"] . "/extras/mr/$i.sql";
if (file_exists($file)) {
unlink($file);
}
}
return;
}
}