From e25e7f8ec718a22c05e2b0ad03da1a8f3c125707 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 6 May 2024 06:50:36 +0000 Subject: [PATCH] fix null --- src/Appwrite/Event/Validator/FunctionEvent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Event/Validator/FunctionEvent.php b/src/Appwrite/Event/Validator/FunctionEvent.php index dceb2df1ae..f43401e7ac 100644 --- a/src/Appwrite/Event/Validator/FunctionEvent.php +++ b/src/Appwrite/Event/Validator/FunctionEvent.php @@ -13,7 +13,7 @@ class FunctionEvent extends Event */ public function isValid($value): bool { - if (str_starts_with($value, 'functions.')) { + if (str_starts_with($value ?? false, 'functions.')) { $this->message = 'Triggering a function on a function event is not allowed.'; return false; }