mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
fix null
This commit is contained in:
parent
53547f8677
commit
e25e7f8ec7
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue