From cff0c9186c98d577474712c4953c591115241e91 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 15 Sep 2007 21:57:33 +0000 Subject: [PATCH] elofgren: VAR FIX: Initialize 'colCount' to prevent error when importing Newsletter Recipients. (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41965 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/Newsletter/RecipientImportField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Newsletter/RecipientImportField.php b/code/Newsletter/RecipientImportField.php index 0c3b62a4..fb4ee3ac 100755 --- a/code/Newsletter/RecipientImportField.php +++ b/code/Newsletter/RecipientImportField.php @@ -127,7 +127,7 @@ class RecipientImportField extends FormField { ); $columnSource = array_merge( array( 'Unknown' => 'Unknown' ), $columnSource ); - + $colCount = 0; foreach( $columns as $cell ) { $columnType = $this->getColumnType( $this->parseCSVCell( $cell )->Value() ); $this->tableColumns[] = new DropdownField( 'ImportFileColumns[' . (string)( $colCount++ ) . ']', '', $columnSource, $columnType );