diff --git a/core/model/fieldtypes/Text.php b/core/model/fieldtypes/Text.php index a2921c3ea..ed6980916 100644 --- a/core/model/fieldtypes/Text.php +++ b/core/model/fieldtypes/Text.php @@ -96,6 +96,8 @@ class Text extends DBField { */ function FirstSentence() { $data = Convert::xml2raw( $this->value ); + if( !$data ) return ""; + $sentences = explode( '.', $data );