From 925df99b548a4d430c02d3f4a25dc3675944efe6 Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Mon, 10 Aug 2015 14:53:47 +0200 Subject: [PATCH] #2362 Fix index_data option insertion --- www/include/options/oreon/generalOpt/DB-Func.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/include/options/oreon/generalOpt/DB-Func.php b/www/include/options/oreon/generalOpt/DB-Func.php index 4274bedbdc8..759e626825a 100644 --- a/www/include/options/oreon/generalOpt/DB-Func.php +++ b/www/include/options/oreon/generalOpt/DB-Func.php @@ -369,7 +369,7 @@ function updateODSConfigData() { `storage_type` = '".$ret["storage_type"]."' WHERE `id` = 1 LIMIT 1 ;"; $DBRESULT = $pearDBO->query($rq); - updateOption($pearDB, "index_data", isset($ret["insert_in_index_data"]) && $ret["insert_in_index_data"] != NULL ? "0": "1"); + updateOption($pearDB, "index_data", isset($ret["insert_in_index_data"]) && $ret["insert_in_index_data"] != NULL ? "1": "0"); updateOption($pearDB, "centstorage", isset($ret["enable_centstorage"]) && $ret["enable_centstorage"] != NULL ? htmlentities($ret["enable_centstorage"], ENT_QUOTES, "UTF-8"): "0"); updateOption($pearDB, "centstorage_auto_drop", isset($ret['centstorage_auto_drop']) ? '1' : '0'); updateOption($pearDB, "centstorage_drop_file", isset($ret['centstorage_drop_file']) ? $pearDB->escape($ret['centstorage_drop_file']) : '');