Skip to content

Commit

Permalink
Merge pull request #383 from dochne/master
Browse files Browse the repository at this point in the history
Avoid undefined array key access inside url assembly
  • Loading branch information
develart-projects authored Sep 27, 2023
2 parents d9ef42a + 444bd9a commit 74ce53b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Zend/Controller/Router/Route/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ public function assemble($data = [], $reset = false, $encode = true, $partial =
}
unset($params[$this->_moduleKey]);

$controller = $params[$this->_controllerKey];
$controller = $params[$this->_controllerKey] ?? null;
unset($params[$this->_controllerKey]);

$action = $params[$this->_actionKey];
$action = $params[$this->_actionKey] ?? null;
unset($params[$this->_actionKey]);

foreach ($params as $key => $value) {
Expand Down

0 comments on commit 74ce53b

Please sign in to comment.