diff --git a/core/core.php b/core/core.php index e79d96f0..38b56a22 100644 --- a/core/core.php +++ b/core/core.php @@ -2815,13 +2815,15 @@ class core extends common { // Check l'existence de l'action $action = ''; $ignore = true; - foreach(explode('-', $this->getUrl(1)) as $actionPart) { - if($ignore) { - $action .= $actionPart; - $ignore = false; - } - else { - $action .= ucfirst($actionPart); + if (!is_null($this->getUrl(1))) { + foreach(explode('-', $this->getUrl(1)) as $actionPart) { + if($ignore) { + $action .= $actionPart; + $ignore = false; + } + else { + $action .= ucfirst($actionPart); + } } } $action = array_key_exists($action, $module::$actions) ? $action : 'index';