aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorMaZderMind2016-10-17 23:06:14 +0200
committerMaZderMind2016-10-17 23:06:14 +0200
commitb00cbc091168df68e166c1bc986646fa39879a17 (patch)
treeddb61f4f9fe015b326e880f208a07f28c098dc02 /index.php
parent4586b89f7dd8ea64597b8b5383658940b47616e3 (diff)
fix 500-error when served path is missing
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
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']);