Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Check that component getActions returns an array before using it

  • Loading branch information...
commit b6803f6141f8372aaa3bd355efb18098fc83cc4f 1 parent 34e7e9a
@stojg stojg authored
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);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.