projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[0000225] Supplier Payment Report showing paid invoices (rounding problem)
[fa-stable.git]
/
includes
/
errors.inc
diff --git
a/includes/errors.inc
b/includes/errors.inc
index 500d7e606ada7e1eb0020d996d1c39e313e2af74..f2cfe1c0fc1b113c6fee2e58706969c0b2484b27 100644
(file)
--- a/
includes/errors.inc
+++ b/
includes/errors.inc
@@
-84,9
+84,9
@@
function error_box() {
global $before_box;
echo "<div id='msgbox'>";
global $before_box;
echo "<div id='msgbox'>";
- $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
// Necessary restart instead of get_contents/clean calls due to a bug in php 4.3.2
- register_shutdown_function('end_flush');
+ $before_box = ob_get_clean(); // save html content before error box
ob_start('output_html');
echo "</div>";
}
ob_start('output_html');
echo "</div>";
}
@@
-98,8
+98,8
@@
function end_flush () {
if (isset($Ajax))
$Ajax->run();
if (isset($Ajax))
$Ajax->run();
-
-
if
(ob_get_level()) ob_end_flush();
+ // flush all output buffers (works also with exit inside any div levels)
+
while
(ob_get_level()) ob_end_flush();
}
function display_db_error($msg, $sql_statement=null, $exit=true)
}
function display_db_error($msg, $sql_statement=null, $exit=true)