forked from ZwiiCMS-Team/ZwiiCMS
paramètre null passé
This commit is contained in:
parent
02ae9a1820
commit
7ce77b98f0
@ -2946,12 +2946,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';
|
||||
|
Loading…
Reference in New Issue
Block a user