diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -51,6 +51,7 @@ $pages = array( '/assignments/edit' => './include/assignments-edit.php', '/about' => './include/about.php' ); + $_page = null; foreach ($pages as $uri => $path) { if ($_request == $uri && file_exists($path)) { @@ -59,6 +60,7 @@ foreach ($pages as $uri => $path) { break; } } + if ($_page === null) { $_page = '/404'; http_response_code(404); |