mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-26 10:39:21 +03:00
Small restructure
This commit is contained in:
parent
27cfd1ee83
commit
5c22933628
2 changed files with 3 additions and 3 deletions
|
|
@ -46,13 +46,13 @@ trait Quota
|
|||
: null;
|
||||
}
|
||||
|
||||
// * QUOTA "User quota" (STORAGE 1284645 2097152)\r\n
|
||||
private function getQuotaResult(\MailSo\Imap\ResponseCollection $oResponseCollection) : array
|
||||
{
|
||||
$aReturn = array(0, 0);
|
||||
foreach ($oResponseCollection as $oResponse) {
|
||||
if (Enumerations\ResponseType::UNTAGGED === $oResponse->ResponseType
|
||||
&& 'QUOTA' === $oResponse->StatusOrIndex
|
||||
&& \is_array($oResponse->ResponseList)
|
||||
&& isset($oResponse->ResponseList[3])
|
||||
&& \is_array($oResponse->ResponseList[3])
|
||||
&& 2 < \count($oResponse->ResponseList[3])
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@ trait User
|
|||
{
|
||||
$sEmail = \MailSo\Base\Utils::Trim($this->GetActionParam('Email', ''));
|
||||
$sPassword = $this->GetActionParam('Password', '');
|
||||
$sLanguage = $this->GetActionParam('Language', '');
|
||||
$bSignMe = !empty($this->GetActionParam('SignMe', 0));
|
||||
|
||||
$oAccount = null;
|
||||
|
|
@ -63,7 +62,8 @@ trait User
|
|||
|
||||
$this->SetAuthToken($oAccount);
|
||||
|
||||
if ($oAccount && \strlen($sLanguage))
|
||||
$sLanguage = $this->GetActionParam('Language', '');
|
||||
if ($oAccount && $sLanguage)
|
||||
{
|
||||
$oSettings = $this->SettingsProvider()->Load($oAccount);
|
||||
if ($oSettings)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue