From 49c254a4e607a86b46c10ea186fd4b3a04bed2d7 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Sun, 1 Sep 2024 19:23:58 +0100 Subject: [PATCH] avoid undefined array key quota.... see #853 --- model/MailboxHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/MailboxHandler.php b/model/MailboxHandler.php index 5a912f8c..17b9a8d7 100644 --- a/model/MailboxHandler.php +++ b/model/MailboxHandler.php @@ -228,7 +228,7 @@ class MailboxHandler extends PFAHandler { } // Avoid trying to store '' in an integer field - if ($this->values['quota'] === '') { + if (array_key_exists('quota', $this->values) && $this->values['quota'] === '') { $this->values['quota'] = 0; }