1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 04:32:01 +02:00

Fix upgrade routine

Was broken in 402d1f4126 (addslashes was default with WriteArray())
This commit is contained in:
Moc 2021-03-22 21:27:22 +01:00
parent cdc61c90ee
commit 0057d24ede
No known key found for this signature in database
GPG Key ID: AAEA3CC2C5A308F2

View File

@ -1386,7 +1386,7 @@ function update_706_to_800($type='')
if ($nt_changed)
{
$s_prefs = $tp -> toDB($notify_prefs);
$s_prefs = e107::serialize($s_prefs);
$s_prefs = e107::serialize($s_prefs, true);
// Could we use $sysprefs->set($s_prefs,'notify_prefs') instead - avoids caching problems ????
$status = ($sql -> update("core", "e107_value='".$s_prefs."' WHERE e107_name='notify_prefs'") !== FALSE) ? E_MESSAGE_DEBUG : E_MESSAGE_ERROR;
$message = str_replace('[x]',$nt_changed,LAN_UPDATE_20);