From b649c09b08c3c19b91177b99ad61ae1d7047700c Mon Sep 17 00:00:00 2001 From: Jak Date: Fri, 10 Aug 2012 18:53:33 +1200 Subject: [PATCH] BUG prevent notice when using selection group --- forms/SelectionGroup.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/forms/SelectionGroup.php b/forms/SelectionGroup.php index 3d3e60712..205994e25 100644 --- a/forms/SelectionGroup.php +++ b/forms/SelectionGroup.php @@ -37,6 +37,8 @@ class SelectionGroup extends CompositeField { $count = 0; $firstSelected = $checked =""; + $newItems = array(); + foreach($items as $key => $item) { if(strpos($key,'//') !== false) { list($key,$title) = explode('//', $key,2);