mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-29 11:01:34 +08:00
Improved convert RainLoop ContactsSync data
This commit is contained in:
parent
5a1835c576
commit
15e25a16e4
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue