Fixed the display_query undefined error by adding a check to see if it exists

This commit is contained in:
ninadsp
2010-08-26 22:52:38 +05:30
parent 8ddfb7140d
commit cce1ef0eda

View File

@@ -675,7 +675,9 @@ if (0 == $num_rows || $is_affected) {
} }
} }
if(isset($GLOBALS['display_query'])) {
$extra_data['sql_query'] = PMA_showMessage(NULL, $GLOBALS['display_query']); $extra_data['sql_query'] = PMA_showMessage(NULL, $GLOBALS['display_query']);
}
PMA_ajaxResponse($message, $message->isSuccess(), $extra_data); PMA_ajaxResponse($message, $message->isSuccess(), $extra_data);
} }