Improved convert RainLoop ContactsSync data

This commit is contained in:
the-djmaze 2023-02-21 08:36:00 +01:00
parent 5a1835c576
commit 15e25a16e4

View file

@ -130,13 +130,14 @@ abstract class Upgrade
if (!$aData) { if (!$aData) {
$aData = static::DecodeKeyValues($sData); $aData = static::DecodeKeyValues($sData);
if ($aData) { if ($aData) {
$oActions->setContactsSyncData($oAccount, $aData); $aData = array(
return array(
'Mode' => empty($aData['Enable']) ? 0 : 1, 'Mode' => empty($aData['Enable']) ? 0 : 1,
'Url' => isset($aData['Url']) ? \trim($aData['Url']) : '', 'Url' => isset($aData['Url']) ? \trim($aData['Url']) : '',
'User' => isset($aData['User']) ? \trim($aData['User']) : '', 'User' => isset($aData['User']) ? \trim($aData['User']) : '',
'Password' => isset($aData['Password']) ? $aData['Password'] : '' 'Password' => isset($aData['Password']) ? $aData['Password'] : ''
); );
$oActions->setContactsSyncData($oAccount, $aData);
return $aData;
} }
} }
} }