From f15108e242be7c3121e789ed10b384669b44694d Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Mon, 26 Mar 2007 06:45:20 +0000 Subject: [PATCH] fixed missing check for 'historywork' --- libraries/relation.lib.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libraries/relation.lib.php b/libraries/relation.lib.php index 0520dfc1d..8cb2240f2 100644 --- a/libraries/relation.lib.php +++ b/libraries/relation.lib.php @@ -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']) . '