fixed missing check for 'historywork'

This commit is contained in:
Sebastian Mendel
2007-03-26 06:45:20 +00:00
parent 2454f1feff
commit f15108e242

View File

@@ -764,6 +764,10 @@ function PMA_setHistory($db, $table, $username, $sqlquery)
array_shift($_SESSION['sql_history']);
}
if (! $cfgRelation['historywork']) {
return;
}
PMA_query_as_cu('
INSERT INTO
' . PMA_backquote($cfgRelation['db']) . '.' . PMA_backquote($cfgRelation['history']) . '
@@ -802,6 +806,10 @@ function PMA_getHistory($username)
return array_reverse($_SESSION['sql_history']);
}
if (! $cfgRelation['historywork']) {
return false;
}
$hist_query = '
SELECT `db`,
`table`,
@@ -836,6 +844,10 @@ function PMA_purgeHistory($username)
return;
}
if (! $cfgRelation['historywork']) {
return;
}
$search_query = '
SELECT `timevalue`
FROM ' . PMA_backquote($cfgRelation['db']) . '.' . PMA_backquote($cfgRelation['history']) . '