removeDir addon when no folder

This commit is contained in:
Fred Tempez 2022-02-12 17:12:12 +01:00
parent 5bdd8a211d
commit fc524450b6

View File

@ -845,7 +845,9 @@ if ($this->getData(['core', 'dataVersion']) < 11300) {
if ($this->getData(['core', 'dataVersion']) < 12000) {
// Effacer le dossier
if (is_dir('core/module/addon')) {
$this->removeDir('core/module/addon');
}
// Mise à jour
$this->setData(['core', 'dataVersion', 12000]);