From 53547f86770a0491cce9d1a232e9e6288391eeef Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 6 May 2024 06:48:19 +0000 Subject: [PATCH] fix null --- src/Appwrite/Event/Validator/Event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Event/Validator/Event.php b/src/Appwrite/Event/Validator/Event.php index 2061d53ed8..a3605e4df5 100644 --- a/src/Appwrite/Event/Validator/Event.php +++ b/src/Appwrite/Event/Validator/Event.php @@ -34,7 +34,7 @@ class Event extends Validator public function isValid($value): bool { $events = Config::getParam('events', []); - $parts = \explode('.', $value); + $parts = \explode('.', $value ?? ''); $count = \count($parts); if ($count < 2 || $count > 7) {