Skip to content
Browse files

MINOR Check that component getActions returns an array before using it

  • Loading branch information...
1 parent 34e7e9a commit b6803f6141f8372aaa3bd355efb18098fc83cc4f @stojg stojg committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 forms/gridfield/GridField.php
View
2 forms/gridfield/GridField.php
@@ -650,7 +650,7 @@ public function handleAction($actionName, $args, $data) {
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);
}
}

0 comments on commit b6803f6

Please sign in to comment.
Something went wrong with that request. Please try again.