Skip to content

Commit

Permalink
cast mailbox['quota'] to be integer.
Browse files Browse the repository at this point in the history
see:  #342
  • Loading branch information
DavidGoodwin committed Mar 16, 2020
1 parent 3303f25 commit d540d90
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions model/MailboxHandler.php
Expand Up @@ -271,6 +271,11 @@ protected function beforestore() {
return true;
}

protected function setmore(array $values) {
if(array_key_exists('quota', $this->values)) {
$this->values['quota'] = (int)$this->values['quota'];
}
}

// Could perhaps also use _validate_local_part($new_value) { .... }
public function set(array $values) {
Expand Down

0 comments on commit d540d90

Please sign in to comment.