forked from leftypol/leftypol
mod.php: $matches should always be an array
This commit is contained in:
parent
8cf497eb93
commit
c0cce68f6b
1 changed files with 2 additions and 4 deletions
4
mod.php
4
mod.php
|
@ -196,10 +196,8 @@ foreach ($pages as $uri => $handler) {
|
|||
$debug['time']['parse_mod_req'] = '~' . round((microtime(true) - $parse_start_time) * 1000, 2) . 'ms';
|
||||
}
|
||||
|
||||
if (is_array($matches)) {
|
||||
// we don't want to call named parameters (PHP 8)
|
||||
// We don't want to call named parameters (PHP 8).
|
||||
$matches = array_values($matches);
|
||||
}
|
||||
|
||||
if (is_string($handler)) {
|
||||
if ($handler[0] == ':') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue