From db5c05cc01e7874e0a7fc7518782ab37b39911a8 Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Wed, 6 Feb 2013 22:23:09 +0100 Subject: [PATCH 1/1] Fix error checks --- index.php | 5 ++++- script.php | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 '

'; -- 2.34.1