positive ifs are easier to read ;)

master
Thierry Degeling 2015-04-25 15:19:44 +02:00
parent d1d38b3f14
commit 57aed9211e
1 changed files with 3 additions and 3 deletions

View File

@ -6,10 +6,10 @@
404 => 'sorry, that page doesn\'t<br />exist or has been moved', 404 => 'sorry, that page doesn\'t<br />exist or has been moved',
500 => "sorry,<br />the server failed to process this page" 500 => "sorry,<br />the server failed to process this page"
); );
if ( !array_key_exists( $_GET["code"] , $description ) ) { if ( array_key_exists( $_GET["code"] , $description ) ) {
$code = '500';
} else {
$code = $_GET["code"]; $code = $_GET["code"];
} else {
$code = '500';
} }
?> ?>
<!doctype html> <!doctype html>