diff --git a/e107_admin/prefs.php b/e107_admin/prefs.php
index 497e9fdda..d3147a857 100644
--- a/e107_admin/prefs.php
+++ b/e107_admin/prefs.php
@@ -63,7 +63,7 @@ if(isset($_POST['updateprefs']))
unset($_POST['updateprefs'], $_POST['sitelanguage']);
- print_a($_POST);
+
$_POST['cookie_name'] = str_replace(array(" ", "."), "_", $_POST['cookie_name']);
$_POST['cookie_name'] = preg_replace("#[^a-zA-Z0-9_]#", "", $_POST['cookie_name']);
@@ -133,6 +133,7 @@ if(isset($_POST['updateprefs']))
{
$newValue = $tp->toDB($value);
}
+
$core_pref->update($key, $newValue);
/*if($newValue != $core_pref->get($key))
{ // Changed value
@@ -733,8 +734,8 @@ $single_logins = array (
$text .= "
-