From 10dc5d05d3deaee239d51ac97b69c88f4ca1ee9d Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Wed, 5 Nov 2003 15:40:55 +0000 Subject: [PATCH] Bug 831181 --- ChangeLog | 3 +++ footer.inc.php3 | 22 +++++++++++----------- libraries/common.lib.php3 | 2 +- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 089daf44d..c51f913ff 100755 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,9 @@ $Id$ $Source$ 2003-11-05 Garvin Hicking + * libraries/common.lib.php3, footer.inc.php3: Bug #831181: Do not + store queries with errors in history, also when coming from the + database SQL tab. * libraries/common.lib.php3: Bug #835854. The MySQL-error messages are now put inside a HTML-container, not
. This allows
       wordwrapping to hide vertical scrollbars. Linebreak/Whitespace
diff --git a/footer.inc.php3 b/footer.inc.php3
index 5d6546a1e..12e4f9c2f 100755
--- a/footer.inc.php3
+++ b/footer.inc.php3
@@ -24,9 +24,9 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
     
-    
+
     
     if (parent.frames.queryframe && parent.frames.queryframe.document && parent.frames.queryframe.document.queryframeform) {
         parent.frames.queryframe.document.queryframeform.db.value = "";
@@ -35,13 +35,13 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
     
-    
+
     function reload_querywindow () {
         if (parent.frames.queryframe && parent.frames.queryframe.querywindow && !parent.frames.queryframe.querywindow.closed && parent.frames.queryframe.querywindow.location) {
             Query Window can be updated.
");' : ''); ?> - + "; parent.frames.queryframe.querywindow.document.querywindow.table.value = ""; parent.frames.queryframe.querywindow.document.querywindow.query_history_latest_table.value = ""; - + - + parent.frames.queryframe.querywindow.document.querywindow.submit(); } @@ -86,7 +86,7 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { } else if (parent.frames.queryframe) { new_win_url = 'querywindow.php3?sql_query=' + sql_query + '&'; parent.frames.queryframe.querywindow=window.open(new_win_url, '','toolbar=0,location=1,directories=0,status=1,menubar=0,scrollbars=yes,resizable=yes,width=,height='); - + if (!parent.frames.queryframe.querywindow.opener) { parent.frames.queryframe.querywindow.opener = parent.frames.queryframe; } @@ -132,9 +132,9 @@ if (isset($GLOBALS['userlink']) && $GLOBALS['userlink']) { /** * Generates profiling data if requested */ -if (isset($GLOBALS['cfg']['DBG']['enable']) - && $GLOBALS['cfg']['DBG']['enable'] - && isset($GLOBALS['cfg']['DBG']['profile']['enable']) +if (isset($GLOBALS['cfg']['DBG']['enable']) + && $GLOBALS['cfg']['DBG']['enable'] + && isset($GLOBALS['cfg']['DBG']['profile']['enable']) && $GLOBALS['cfg']['DBG']['profile']['enable']) { //run the basic setup code first include('./libraries/dbg/setup.php3'); diff --git a/libraries/common.lib.php3 b/libraries/common.lib.php3 index 176921242..9a75a7f67 100644 --- a/libraries/common.lib.php3 +++ b/libraries/common.lib.php3 @@ -521,7 +521,7 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold} echo PMA_showMySQLDocu('Error-returns', 'Error-returns'); if (!empty($back_url) && $exit) { - echo ' · [' . $GLOBALS['strBack'] . ']'; + echo ' · [' . $GLOBALS['strBack'] . ']'; } echo "\n";