notice effacement d'une page sans module
This commit is contained in:
parent
fa4b762d00
commit
d736610248
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user