mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
fix null
This commit is contained in:
1 parent
53547f8677
commit
e25e7f8ec7
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user