Skip to content

Commit

Permalink
Resolve #1032
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Mar 21, 2023
1 parent db5bd3c commit f1f4606
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,11 @@ private function setStatusItem(string $name, $value) : bool
$name = 'MAILBOXID';
}
if (\property_exists(__TRAIT__, $name)) {
if ('MAILBOXID' !== $name) {
$value = (int) $value;
if ('MAILBOXID' === $name) {
$this->MAILBOXID = \base64_encode(\is_array($value) ? $value[0] : $value);
} else {
$this->$name = (int) $value;
}
$this->$name = $value;
return true;
}
return false;
Expand Down

0 comments on commit f1f4606

Please sign in to comment.