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;