Paramètre null passé

This commit is contained in:
Fred Tempez 2022-10-04 10:21:39 +02:00
parent 5da6f3e646
commit d1d76aaf81
1 changed files with 2 additions and 1 deletions

View File

@ -1324,7 +1324,8 @@ class common {
public function showSection() {
echo '<section>';
// Récupérer la config de la page courante
$blocks = explode('-',$this->getData(['page',$this->getUrl(0),'block']));
$blocks = is_null($this->getData(['page',$this->getUrl(0),'block'])) ? '12' : $this->getData(['page',$this->getUrl(0),'block']);
$blocks = explode('-', $blocks);
// Initialiser
$blockleft=$blockright="";
switch (sizeof($blocks)) {