bug [history] QueryHistoryDB is not respected

This commit is contained in:
Marc Delisle
2009-11-28 13:11:13 +00:00
parent 53ba44270e
commit a1957c6687
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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;
}