From b00cbc091168df68e166c1bc986646fa39879a17 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Mon, 17 Oct 2016 23:06:14 +0200 Subject: fix 500-error when served path is missing --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index 4deefcd..5935c79 100644 --- a/index.php +++ b/index.php @@ -47,7 +47,7 @@ try { $pieces = parse_url($route); - $route = $pieces['path']; + $route = isset($pieces['path']) ? $pieces['path'] : ''; $route = rtrim($route, '/'); $GLOBALS['forceopen'] = isset($_GET['forceopen']); -- cgit v1.2.3