From 3be2d445f91f82f269e0fbc4e783401c2d49e914 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 14 Sep 2007 23:38:26 +0000 Subject: [PATCH] elofgren: VAR FIX: Initialize 'has' to an array and use isset() for removeList in ComponentSet::setByIDList() to fix undefined variable errors when saving 'SubscribeForm?' page. (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41819 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/ComponentSet.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/model/ComponentSet.php b/core/model/ComponentSet.php index bfefe7a7f..a3c54eaa1 100755 --- a/core/model/ComponentSet.php +++ b/core/model/ComponentSet.php @@ -159,6 +159,7 @@ class ComponentSet extends DataObjectSet { * @param array $idList List of IDs. */ function setByIDList($idList) { + $has = array(); // Index current data if($this->items) { foreach( $this->items as $item )