mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-27 17:00:52 +01:00
mod.php: $matches should always be an array
This commit is contained in:
parent
6c6ec65b02
commit
f9127dd478
6
mod.php
6
mod.php
@ -184,10 +184,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)
|
||||
$matches = array_values($matches);
|
||||
}
|
||||
// We don't want to call named parameters (PHP 8).
|
||||
$matches = array_values($matches);
|
||||
|
||||
if (is_string($handler)) {
|
||||
if ($handler[0] == ':') {
|
||||
|
Loading…
Reference in New Issue
Block a user