mirror of
https://gitlab.com/mojo42/Jirafeau.git
synced 2025-01-17 12:58:20 +01:00
Fix error checks
This commit is contained in:
parent
18c82ef56d
commit
db5c05cc01
@ -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>
|
||||
|
@ -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>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user