mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
Bugfix: count() Argument #1 ($value) must be of type Countable|array, null given
This commit is contained in:
parent
e452c3516a
commit
22472ea1f1
1 changed files with 2 additions and 2 deletions
|
|
@ -215,8 +215,8 @@ trait Accounts
|
|||
return $this->FalseResponse(__FUNCTION__);
|
||||
}
|
||||
|
||||
$oAccount = $this->getMainAccountFromToken();
|
||||
if (1 < \count($aAccounts)) {
|
||||
if (\is_array($aAccounts) && 1 < \count($aAccounts)) {
|
||||
$oAccount = $this->getMainAccountFromToken();
|
||||
$aAccounts = \array_filter(\array_merge(
|
||||
\array_fill_keys($aAccounts, null),
|
||||
$this->GetAccounts($oAccount)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue