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