From 57aed9211e45bddb938e13284cbabc48e1a64777 Mon Sep 17 00:00:00 2001 From: Thierry Degeling Date: Sat, 25 Apr 2015 15:19:44 +0200 Subject: [PATCH] positive ifs are easier to read ;) --- index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 38e1262..11e2b8a 100644 --- a/index.php +++ b/index.php @@ -6,10 +6,10 @@ 404 => 'sorry, that page doesn\'t
exist or has been moved', 500 => "sorry,
the server failed to process this page" ); - if ( !array_key_exists( $_GET["code"] , $description ) ) { - $code = '500'; - } else { + if ( array_key_exists( $_GET["code"] , $description ) ) { $code = $_GET["code"]; + } else { + $code = '500'; } ?>