Improved error handling. The ajax message was not being properly shown
for an empty result set
This commit is contained in:
7
sql.php
7
sql.php
@@ -325,11 +325,10 @@ if (isset($GLOBALS['show_as_php']) || !empty($GLOBALS['validatequery'])) {
|
|||||||
/**
|
/**
|
||||||
* HTML header.
|
* 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))
|
$full_err_url = (preg_match('@^(db|tbl)_@', $err_url))
|
||||||
? $err_url . '&show_query=1&sql_query=' . urlencode($sql_query)
|
? $err_url . '&show_query=1&sql_query=' . urlencode($sql_query)
|
||||||
: $err_url;
|
: $err_url;
|
||||||
|
Reference in New Issue
Block a user