mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Resolve #1640 workaround PHP issue
This commit is contained in:
parent
8d11ad43da
commit
b2b3dac35b
|
@ -119,7 +119,11 @@ trait Status
|
|||
}
|
||||
if (\property_exists(__TRAIT__, $name)) {
|
||||
if ('MAILBOXID' === $name) {
|
||||
$this->MAILBOXID = \base64_encode(\is_array($value) ? $value[0] : $value);
|
||||
// https://github.com/the-djmaze/snappymail/issues/1640
|
||||
$value = \is_array($value) ? \reset($value) : $value;
|
||||
if (\is_string($value)) {
|
||||
$this->MAILBOXID = \base64_encode($value);
|
||||
}
|
||||
} else {
|
||||
$this->$name = (int) $value;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue