From f760d2cd3a5e819966ecf597a2ed937faf9da1ca Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Sun, 28 Aug 2022 15:01:47 +0100 Subject: [PATCH] to not try to sanitise a null - see https://github.com/postfixadmin/postfixadmin/issues/650 --- model/PFASmarty.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/PFASmarty.php b/model/PFASmarty.php index 7c5d9cb5..d17f0946 100644 --- a/model/PFASmarty.php +++ b/model/PFASmarty.php @@ -138,7 +138,7 @@ class PFASmarty * */ public function sanitise($data) { - if (is_object($data)) { + if (is_object($data) || is_null($data)) { return $data; // can't handle }