From cce1ef0edacfd30a3cd913d0e0688e0adb6fb706 Mon Sep 17 00:00:00 2001 From: ninadsp Date: Thu, 26 Aug 2010 22:52:38 +0530 Subject: [PATCH] Fixed the display_query undefined error by adding a check to see if it exists --- sql.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sql.php b/sql.php index 5d26b0030..b29dd779b 100755 --- a/sql.php +++ b/sql.php @@ -675,7 +675,9 @@ if (0 == $num_rows || $is_affected) { } } - $extra_data['sql_query'] = PMA_showMessage(NULL, $GLOBALS['display_query']); + if(isset($GLOBALS['display_query'])) { + $extra_data['sql_query'] = PMA_showMessage(NULL, $GLOBALS['display_query']); + } PMA_ajaxResponse($message, $message->isSuccess(), $extra_data); }