From 64d6c8edddb21dcfa68e9530d69c6dcf28a117d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 23 Oct 2003 16:24:44 +0000 Subject: [PATCH] Try to update history in table only if configured so (bug #828356). --- ChangeLog | 2 ++ footer.inc.php3 | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8f77dc8d8..c9c128003 100755 --- a/ChangeLog +++ b/ChangeLog @@ -18,6 +18,8 @@ $Source$ export options in Opera (bug #828712). * db_details_structure.php3, lang/*: Show also overhead, allow to check all tables with overhead at once (JS only) (RFE #828090). + * footer.inc.php3: Try to update history in table only if configured so + (bug #828356). 2003-10-21 Marc Delisle * pdf_pages.php3: Patch 825672: show fields in Edit PDF scratchboard, diff --git a/footer.inc.php3 b/footer.inc.php3 index b5e36f79f..5d6546a1e 100755 --- a/footer.inc.php3 +++ b/footer.inc.php3 @@ -45,7 +45,9 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { if (isset($LockFromUpdate) && $LockFromUpdate == '1' && isset($sql_query)) { // When the button 'LockFromUpdate' was selected in the querywindow, it does not submit it's contents to // itself. So we create a SQL-history entry here. - PMA_setHistory((isset($db) ? $db : ''), (isset($table) ? $table : ''), $cfg['Server']['user'], $sql_query); + if ($cfg['QueryHistoryDB'] && $cfgRelation['historywork']) { + PMA_setHistory((isset($db) ? $db : ''), (isset($table) ? $table : ''), $cfg['Server']['user'], $sql_query); + } } ?> if (!parent.frames.queryframe.querywindow.document.sqlform.LockFromUpdate || !parent.frames.queryframe.querywindow.document.sqlform.LockFromUpdate.checked) {