1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 19:44:09 +02:00

Bugtracker #5013 - stop prefs getting sanitised on save

This commit is contained in:
e107steved
2010-09-06 21:35:04 +00:00
parent decaecf54d
commit 5e3b71d3cd
2 changed files with 10 additions and 6 deletions

View File

@@ -1493,7 +1493,7 @@ function save_prefs($table = 'core', $uid = USERID, $row_val = '')
break;
default:
$_user_pref = $tp->toDB($user_pref, true, true);
$_user_pref = $tp->toDB($user_pref, true, true, 'pReFs');
$tmp = $eArrayStorage->WriteArray($_user_pref);
$sql->db_Update('user', "user_prefs='$tmp' WHERE user_id=".intval($uid));
return $tmp;