From a1957c66879f60ee395c14d539dee7bd60fe8282 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 28 Nov 2009 13:11:13 +0000 Subject: [PATCH] bug [history] QueryHistoryDB is not respected --- ChangeLog | 1 + libraries/relation.lib.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 36749840e..e33a98161 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA 3.2.5.0 (not yet released) - patch #2903400 [bookmarks] Status of bookmark table, thanks to Virsacer - virsacer +- bug [history] QueryHistoryDB is not respected 3.2.4.0 (not yet released) - bug [engines] Innodb_buffer_pool_pages_latched no longer returned in status diff --git a/libraries/relation.lib.php b/libraries/relation.lib.php index 29429c8ac..8d3a0d829 100644 --- a/libraries/relation.lib.php +++ b/libraries/relation.lib.php @@ -670,6 +670,7 @@ function PMA_setDbComment($db, $comment = '') * Set a SQL history entry * * @uses $_SESSION['sql_history'] + * @uses $cfg['QueryHistoryDB'] * @uses $cfg['QueryHistoryMax'] * @uses PMA_getRelationsParam() * @uses PMA_query_as_cu() @@ -713,7 +714,7 @@ function PMA_setHistory($db, $table, $username, $sqlquery) array_shift($_SESSION['sql_history']); } - if (! $cfgRelation['historywork']) { + if (! $cfgRelation['historywork'] || ! $GLOBALS['cfg']['QueryHistoryDB']) { return; }