From 15e25a16e47aa5f649692c10c395278660f5aa16 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 21 Feb 2023 08:36:00 +0100 Subject: [PATCH] Improved convert RainLoop ContactsSync data --- snappymail/v/0.0.0/app/libraries/snappymail/upgrade.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/snappymail/upgrade.php b/snappymail/v/0.0.0/app/libraries/snappymail/upgrade.php index 8586e1590..715815dad 100644 --- a/snappymail/v/0.0.0/app/libraries/snappymail/upgrade.php +++ b/snappymail/v/0.0.0/app/libraries/snappymail/upgrade.php @@ -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; } } }