faille cerf delete page

This commit is contained in:
fredtempez 2019-01-03 14:10:36 +01:00
parent 3222aaf7d5
commit 90d31b142b
1 changed files with 35 additions and 33 deletions

View File

@ -74,6 +74,7 @@ class page extends common {
* Suppression * Suppression
*/ */
public function delete() { public function delete() {
if($this->isPost()) {
// La page n'existe pas // La page n'existe pas
if($this->getData(['page', $this->getUrl(2)]) === null) { if($this->getData(['page', $this->getUrl(2)]) === null) {
// Valeurs en sortie // Valeurs en sortie
@ -109,6 +110,7 @@ class page extends common {
]); ]);
} }
} }
}
/** /**
* Édition * Édition