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) {
$aData = static::DecodeKeyValues($sData);
if ($aData) {
$oActions->setContactsSyncData($oAccount, $aData);
return array(
$aData = array(
'Mode' => empty($aData['Enable']) ? 0 : 1,
'Url' => isset($aData['Url']) ? \trim($aData['Url']) : '',
'User' => isset($aData['User']) ? \trim($aData['User']) : '',
'Password' => isset($aData['Password']) ? $aData['Password'] : ''
);
$oActions->setContactsSyncData($oAccount, $aData);
return $aData;
}
}
}