Skip to content
Snippets Groups Projects

fix_truncate with empty string

Merged Ghislain Loas requested to merge fix_truncate into master
Compare and
2 files
+ 15
1
Preferences
Compare changes
Files
2
@@ -194,7 +194,7 @@ abstract class Intonation_Library_View_Wrapper_Abstract {
protected function _truncate($text): string
{
$number_of_word = ($this->_widget_context && null !== ($description_length = $this->_widget_context->getDescriptionLength()))
? $description_length
? (int) $description_length
: ZendAfi_View_Helper_Template_TruncateList::AJAX_SIZE;
return $this->_view->truncate($text,