Improved error handling. The ajax message was not being properly shown

for an empty result set
This commit is contained in:
ninadsp
2010-07-14 20:21:47 +05:30
parent ea95907147
commit 98676380f9

View File

@@ -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;