Empty row result set was not being handled correctly for Table Search page, fixed it
This commit is contained in:
8
sql.php
8
sql.php
@@ -536,15 +536,15 @@ if (0 == $num_rows || $is_affected) {
|
|||||||
$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) {
|
||||||
if (strlen($table)) {
|
if (strlen($table)) {
|
||||||
|
Reference in New Issue
Block a user