diff --git a/sql.php b/sql.php index d5cbf0721..b225774c5 100755 --- a/sql.php +++ b/sql.php @@ -535,15 +535,15 @@ if (0 == $num_rows || $is_affected) { $message->addMessage($_querytime); $message->addMessage(')'); } + + if( $GLOBALS['is_ajax_request'] == true) { + PMA_ajaxResponse($message, $message->isSuccess()); + } if ($is_gotofile) { $goto = PMA_securePath($goto); // Checks for a valid target script $is_db = $is_table = false; - - if( $GLOBALS['is_ajax_request'] == true) { - PMA_ajaxResponse($message); - } include 'libraries/db_table_exists.lib.php'; if (strpos($goto, 'tbl_') === 0 && ! $is_table) {