X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Ferrors.inc;h=536d23ad8a50008181d48e2a2b98ab3423eadb3d;hb=5ddbc6107f4823f6b3629846aba63814bf958d38;hp=9616313f433d91e8187d54eacf25d1c0ad45b467;hpb=f6e1b649fc75750383b17c2ced6a5c1d6f19fe2e;p=fa-stable.git diff --git a/includes/errors.inc b/includes/errors.inc index 9616313f..536d23ad 100644 --- a/includes/errors.inc +++ b/includes/errors.inc @@ -11,7 +11,6 @@ $msg_colors = array( //----------------------------------------------------------------------------- // Error handler - collects all php/user messages for // display in message box. -// FIX: fatal errors ? function error_handler($errno, $errstr, $file, $line) { global $messages; @@ -65,6 +64,7 @@ function error_box() { echo "
"; $before_box = ob_get_clean(); // save html content before error box // Necessary restart instead of get_contents/clean calls due to a bug in php 4.3.2 + register_shutdown_function('ob_end_flush'); ob_start('output_html'); echo "
"; } @@ -101,8 +101,7 @@ function frindly_db_error($db_error) if ($db_error == $db_duplicate_error_code) { - display_error(_("The entered information is a duplicate. Please go back and enter different values.") - . "
" . _("Back") . "", true); + display_error(_("The entered information is a duplicate. Please go back and enter different values.")); return true; }