Fix query history displaying (bug #1374639).

This commit is contained in:
Michal Čihař
2005-12-13 13:37:42 +00:00
parent 05b1ab7820
commit cb91cf1032
2 changed files with 6 additions and 3 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2005-12-13 Michal Čihař <michal@cihar.com>
* querywindow.php: Fix query history displaying (bug #1374639).
2005-12-12 Michal Čihař <michal@cihar.com> 2005-12-12 Michal Čihař <michal@cihar.com>
* scripts/setup.php: Use same format of version file as in upgrade.pl. * scripts/setup.php: Use same format of version file as in upgrade.pl.

View File

@@ -213,8 +213,8 @@ if ( $GLOBALS['cfg']['QueryHistoryDB'] && $cfgRelation['historywork'] ) {
foreach ($query_history AS $query_no => $query_sql) { foreach ($query_history AS $query_no => $query_sql) {
if ( ! isset( $_input_query_history[$query_sql] ) ) { if ( ! isset( $_input_query_history[$query_sql] ) ) {
$_input_query_history[$query_sql] = array( $_input_query_history[$query_sql] = array(
'db' => $query_history_db, 'db' => $query_history_db[$query_no],
'table' => isset($query_history_table) ? $query_history_table : '', 'table' => isset($query_history_table[$query_no]) ? $query_history_table[$query_no] : '',
); );
$_sql_history[$query_sql] = array( $_sql_history[$query_sql] = array(
'db' => $query_history_db[$query_no], 'db' => $query_history_db[$query_no],