From: Janusz Dobrowolski Date: Sun, 17 Jan 2010 22:09:05 +0000 (+0000) Subject: Fixed error messages display in ajax mode. X-Git-Tag: 2.3-final~1029 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=8eacc919cc5fce2d2ddd69a650c33c881828c76d;p=fa-stable.git Fixed error messages display in ajax mode. --- diff --git a/includes/errors.inc b/includes/errors.inc index a9b68898..500d7e60 100644 --- a/includes/errors.inc +++ b/includes/errors.inc @@ -94,7 +94,12 @@ function error_box() { Helper to avoid sparse log notices. */ function end_flush () { - if (ob_get_level()) ob_end_flush(); + global $Ajax; + + if (isset($Ajax)) + $Ajax->run(); + + if (ob_get_level()) ob_end_flush(); } function display_db_error($msg, $sql_statement=null, $exit=true)