mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-30 05:09:06 +02:00
MINOR Check that component getActions returns an array before using it
This commit is contained in:
parent
34e7e9a05e
commit
b6803f6141
@ -650,7 +650,7 @@ class GridField extends FormField {
|
||||
continue;
|
||||
}
|
||||
|
||||
if(in_array($actionName, array_map('strtolower', $component->getActions($this)))) {
|
||||
if(is_array($component->getActions($this)) && in_array($actionName, array_map('strtolower', $component->getActions($this)))) {
|
||||
return $component->handleAction($this, $actionName, $args, $data);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user