From cff19a334ae1960fd091fe2d601d239c6eb5c66a Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 25 Feb 2007 12:39:38 +0000 Subject: [PATCH] bug 1667466, undefined variable when export + save on server --- ChangeLog | 4 ++++ libraries/common.lib.php | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c03087d00..36923b784 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 27684f80c..9cb2c8d82 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -1185,8 +1185,11 @@ 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 { + // could be empty, for example export + save on server + } elseif (! empty($GLOBALS['sql_query'])) { $sql_query = $GLOBALS['sql_query']; + } else { + $sql_query = ''; } }