1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 00:54:49 +02:00

Remove old way to store user preferences sytem-wide

This commit is contained in:
SecretR
2014-10-24 07:37:03 +03:00
parent e636fba0be
commit 85d6ec37f7
5 changed files with 19 additions and 13 deletions

View File

@@ -177,8 +177,9 @@ if (isset($_POST['GetOnWithIt']))
$recordCount++;
$newData = array();
$newPrefs = '';
$user_prefs = unserialize($row['user_prefs']);
if ($saltConvert)
$user_prefs = e107::getArrayStorage()->unserialize($row['user_prefs']);
if(!$user_prefs && $row['user_prefs']) $user_prefs = unserialize($row['user_prefs']);
if ($saltConvert)
{
if ($user_info->canConvert($row['user_password']))
{
@@ -204,7 +205,7 @@ if (isset($_POST['GetOnWithIt']))
unset($user_prefs['email_password']);
$emailProcess++;
}
if (count($user_prefs)) $newPrefs = serialize($user_prefs); else $newPrefs = '';
if (count($user_prefs)) $newPrefs = e107::getArrayStorage()->serialize($user_prefs); else $newPrefs = '';
if($newPrefs != $user_prefs)
{
$newData['user_prefs'] = $newPrefs;