From a76f104af151925e086d7284cc892dfef47553cc Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Mon, 23 Feb 2009 02:17:50 +0000 Subject: [PATCH] MINOR: notice level fix for undefined var in text field git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2@72084 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/fieldtypes/Text.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/model/fieldtypes/Text.php b/core/model/fieldtypes/Text.php index eb9e72d2a..ae4927252 100644 --- a/core/model/fieldtypes/Text.php +++ b/core/model/fieldtypes/Text.php @@ -165,6 +165,7 @@ class Text extends DBField { // get first sentence? // this needs to be more robust + $result = ''; if($plain) $data = Convert::xml2raw( $this->value, true ); if( !$data )