Bug #3183970 Losing SQL history

This commit is contained in:
Madhura Jayaratne
2011-02-18 18:54:36 +05:30
parent 2410839251
commit da82fe392b

View File

@@ -22,7 +22,7 @@ if (! defined('PHPMYADMIN')) {
*/ */
function PMA_query_as_controluser($sql, $show_error = true, $options = 0) function PMA_query_as_controluser($sql, $show_error = true, $options = 0)
{ {
// Avoid caching of the number of rows affected; for example, this function // Avoid caching of the number of rows affected; for example, this function
// is called for tracking purposes but we want to display the correct number // is called for tracking purposes but we want to display the correct number
// of rows affected by the original query, not by the query generated for // of rows affected by the original query, not by the query generated for
// tracking. // tracking.
@@ -760,10 +760,6 @@ function PMA_getHistory($username)
{ {
$cfgRelation = PMA_getRelationsParam(); $cfgRelation = PMA_getRelationsParam();
if (isset($_SESSION['sql_history'])) {
return array_reverse($_SESSION['sql_history']);
}
if (! $cfgRelation['historywork']) { if (! $cfgRelation['historywork']) {
return false; return false;
} }