fixed missing check for 'historywork'
This commit is contained in:
@@ -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']) . '
|
||||
|
Reference in New Issue
Block a user