notice effacement d'une page sans module

This commit is contained in:
Fred Tempez 2022-02-09 15:32:04 +01:00
parent fa4b762d00
commit d736610248

View File

@ -272,7 +272,9 @@ class page extends common {
// Effacer le dossier du module
$moduleId = $this->getData(['page',$url[0],'moduleId']);
$modulesData = helper::getModules();
if (is_dir($modulesData[$moduleId]['dataDirectory']. $url[0])) {
if ( array_key_exists($moduleId, $modulesData)
&& is_dir($modulesData[$moduleId]['dataDirectory'] . $url[0])
) {
$this->removeDir( $modulesData[$moduleId]['dataDirectory']. $url[0] );
}
// Effacer la page