From 98676380f96e102ad4bd137d75b98b18380ec681 Mon Sep 17 00:00:00 2001 From: ninadsp Date: Wed, 14 Jul 2010 20:21:47 +0530 Subject: [PATCH] Improved error handling. The ajax message was not being properly shown for an empty result set --- sql.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sql.php b/sql.php index 3a27eebc8..d5cbf0721 100755 --- a/sql.php +++ b/sql.php @@ -325,11 +325,10 @@ if (isset($GLOBALS['show_as_php']) || !empty($GLOBALS['validatequery'])) { /** * HTML header. */ - if( $GLOBALS['is_ajax_request'] == true) { - PMA_ajaxResponse(NULL, false); + + if($GLOBALS['is_ajax_request'] != true) { + require_once './libraries/header.inc.php'; } - - require_once './libraries/header.inc.php'; $full_err_url = (preg_match('@^(db|tbl)_@', $err_url)) ? $err_url . '&show_query=1&sql_query=' . urlencode($sql_query) : $err_url;