Skip to content

Commit

Permalink
Merge pull request #13019 from opencartbot/patch-6
Browse files Browse the repository at this point in the history
PHP 8 - null parameter
  • Loading branch information
danielkerr committed Nov 27, 2023
2 parents 03a3bc9 + 03da248 commit 402559b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/system/engine/action.php
Expand Up @@ -62,7 +62,7 @@ public function execute($registry, array $args = array()) {
}

$file = DIR_APPLICATION . 'controller/' . $this->route . '.php';
$class = 'Controller' . preg_replace('/[^a-zA-Z0-9]/', '', $this->route);
$class = 'Controller' . preg_replace('/[^a-zA-Z0-9]/', '', (string)$this->route);

// Initialize the class
if (is_file($file)) {
Expand Down

0 comments on commit 402559b

Please sign in to comment.