From 7da51f1a8ebf9bc9b42d1e591068d8f1e5c14fd1 Mon Sep 17 00:00:00 2001 From: ninadsp Date: Fri, 16 Jul 2010 19:10:48 +0530 Subject: [PATCH] Empty row result set was not being handled correctly for Table Search page, fixed it --- sql.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) {