aboutsummaryrefslogtreecommitdiffstats
path: root/install/db/30-database.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--install/db/30-database.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/install/db/30-database.php b/install/db/30-database.php
index 5770d425e..bcb209d9b 100644
--- a/install/db/30-database.php
+++ b/install/db/30-database.php
@@ -33,7 +33,9 @@ if (!defined('PHPWG_ROOT_PATH'))
$upgrade_description = 'Add history_guest and login_history to #config';
$query = '
-INSERT INTO '.PREFIX_TABLE."config (param,value,comment) VALUES ('history_admin','false','keep a history of administrator visits on your website');";
+INSERT INTO '.PREFIX_TABLE."config (param,value,comment) VALUES ('history_admin',".
+((isset($conf['history_admin']) and $conf['history_admin']) ? 'true' : 'false').
+",'keep a history of administrator visits on your website');";
pwg_query($query);
$query = '