From: Jerome Jutteau Date: Wed, 6 Feb 2013 21:23:09 +0000 (+0100) Subject: Fix error checks X-Git-Tag: 1.1~219 X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/commitdiff_plain/db5c05cc01e7874e0a7fc7518782ab37b39911a8 Fix error checks --- diff --git a/index.php b/index.php index 554afc7..da4cc40 100644 --- a/index.php +++ b/index.php @@ -26,8 +26,11 @@ require (JIRAFEAU_ROOT . 'lib/template/header.php'); check_errors (); if (has_error ()) +{ show_errors (); - + require (JIRAFEAU_ROOT . 'lib/template/footer.php'); + exit; +} ?>

diff --git a/script.php b/script.php index 1d11050..6fd8626 100755 --- a/script.php +++ b/script.php @@ -38,7 +38,11 @@ if ($_SERVER['REQUEST_METHOD'] == "GET" && count ($_GET) == 0) require (JIRAFEAU_ROOT . 'lib/template/header.php'); check_errors (); if (has_error ()) + { show_errors (); + require (JIRAFEAU_ROOT . 'lib/template/footer.php'); + exit; + } echo '

'; echo '

' . t('Welcome to Jirafeau\'s query interface') . '

'; echo '

';