MINOR Check that component getActions returns an array before using it

This commit is contained in:
Stig Lindqvist 2012-03-09 15:46:45 +13:00
parent 34e7e9a05e
commit b6803f6141

View File

@ -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);
}
}