Fix error checks

This commit is contained in:
Jerome Jutteau 2013-02-06 22:23:09 +01:00
parent 18c82ef56d
commit db5c05cc01
2 changed files with 8 additions and 1 deletions

View File

@ -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;
}
?>
<div id="upload_finished">
<p>

View File

@ -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 '<div class="info">';
echo '<h2>' . t('Welcome to Jirafeau\'s query interface') . '</h2>';
echo '<p>';