From 560e6741091b35394a5213e2843f4a7f9cc935d0 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sat, 7 Feb 2015 20:47:52 +0100 Subject: converted indent to spaces; improved readability; removed obsolete todos --- index.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'index.php') diff --git a/index.php b/index.php index 238b72e..a27f054 100644 --- a/index.php +++ b/index.php @@ -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); -- cgit v1.2.3