From 9867ac0fc9b6390da9584cc75204ff8bfab91ace Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 25 Feb 2007 12:45:29 +0000 Subject: [PATCH] bug 1667466, undefined variable when export + save on server --- ChangeLog | 4 ++++ libraries/common.lib.php | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 302aed93d..06e1550eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - ChangeLog $Id$ $HeadURL$ +2007-02-25 Marc Delisle + * libraries/common.lib.php: bug #1667466, undefined variable when + export + save on server + 2007-02-24 Marc Delisle * libraries/config.default.php: RFE #1621437, HEX and UNHEX were not available for a BINARY field diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 65e7a05ec..10273dfac 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -1348,8 +1348,10 @@ if (typeof(window.parent) != 'undefined' $sql_query = $GLOBALS['display_query']; } elseif ($cfg['SQP']['fmtType'] == 'none' && ! empty($GLOBALS['unparsed_sql'])) { $sql_query = $GLOBALS['unparsed_sql']; - } else { + } elseif (! empty($GLOBALS['sql_query'])) { $sql_query = $GLOBALS['sql_query']; + } else { + $sql_query = ''; } }