positive ifs are easier to read ;)
parent
d1d38b3f14
commit
57aed9211e
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue