1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-01 02:27:24 +01:00

Fix mod.php error when $config[debug]

This commit is contained in:
Fredrick Brennan 2015-03-27 18:49:17 +08:00
parent 3ee32993d7
commit 8578b5a4ee

View File

@ -136,6 +136,8 @@ foreach ($pages as $key => $callback) {
} }
$pages = $new_pages; $pages = $new_pages;
$parse_start_time = microtime(true);
foreach ($pages as $uri => $handler) { foreach ($pages as $uri => $handler) {
if (preg_match($uri, $query, $matches)) { if (preg_match($uri, $query, $matches)) {
$matches = array_slice($matches, 1); $matches = array_slice($matches, 1);