bug [history] QueryHistoryDB is not respected

This commit is contained in:
Marc Delisle
2009-11-28 13:11:13 +00:00
parent 50b7053d5c
commit 71e6f68763
2 changed files with 3 additions and 1 deletions

View File

@@ -50,6 +50,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

View File

@@ -682,6 +682,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_controluser()
@@ -725,7 +726,7 @@ function PMA_setHistory($db, $table, $username, $sqlquery)
array_shift($_SESSION['sql_history']);
}
if (! $cfgRelation['historywork']) {
if (! $cfgRelation['historywork'] || ! $GLOBALS['cfg']['QueryHistoryDB']) {
return;
}