🔒 Vérifie si le dossier existe
This commit is contained in:
parent
0353fe68cc
commit
2bb5bb7b5b
2
cron.php
2
cron.php
@ -80,8 +80,10 @@ if ($actions->connect()) {
|
||||
|
||||
// Backup
|
||||
foreach ($deals_to_backup as $deal_to_backup) {
|
||||
if (!file_exists(BACKUP_DEALS_DIR.'/'.$deal_to_backup->getId())) {
|
||||
rename(EXISTING_DEALS_DIR . '/' . $deal_to_backup->getId(), BACKUP_DEALS_DIR . '/' . $deal_to_backup->getId());
|
||||
}
|
||||
}
|
||||
|
||||
// Creation
|
||||
foreach (new DirectoryIterator(NEW_DEALS_DIR) as $new_deal) {
|
||||
|
Loading…
Reference in New Issue
Block a user