Empty row result set was not being handled correctly for Table Search page, fixed it

This commit is contained in:
ninadsp
2010-07-16 19:10:48 +05:30
parent e309386703
commit 7da51f1a8e

View File

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