From b6803f6141f8372aaa3bd355efb18098fc83cc4f Mon Sep 17 00:00:00 2001 From: Stig Lindqvist Date: Fri, 9 Mar 2012 15:46:45 +1300 Subject: [PATCH] MINOR Check that component getActions returns an array before using it --- forms/gridfield/GridField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/gridfield/GridField.php b/forms/gridfield/GridField.php index 9aef66d79..7f9628ebe 100755 --- a/forms/gridfield/GridField.php +++ b/forms/gridfield/GridField.php @@ -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); } }