forked from ZwiiCMS-Team/ZwiiCMS
Paramètre null passé
This commit is contained in:
parent
fd85a595be
commit
5da6f3e646
@ -2815,13 +2815,15 @@ class core extends common {
|
|||||||
// Check l'existence de l'action
|
// Check l'existence de l'action
|
||||||
$action = '';
|
$action = '';
|
||||||
$ignore = true;
|
$ignore = true;
|
||||||
foreach(explode('-', $this->getUrl(1)) as $actionPart) {
|
if (!is_null($this->getUrl(1))) {
|
||||||
if($ignore) {
|
foreach(explode('-', $this->getUrl(1)) as $actionPart) {
|
||||||
$action .= $actionPart;
|
if($ignore) {
|
||||||
$ignore = false;
|
$action .= $actionPart;
|
||||||
}
|
$ignore = false;
|
||||||
else {
|
}
|
||||||
$action .= ucfirst($actionPart);
|
else {
|
||||||
|
$action .= ucfirst($actionPart);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$action = array_key_exists($action, $module::$actions) ? $action : 'index';
|
$action = array_key_exists($action, $module::$actions) ? $action : 'index';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user