From 1c23624ea955d88dcb7c35df2a59675ace546df4 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sun, 17 Jan 2010 22:09:05 +0000 Subject: [PATCH] Fixed error messages display in ajax mode. --- includes/errors.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/errors.inc b/includes/errors.inc index a9b6889..500d7e6 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) -- 2.30.2