diff --git a/typo3/sysext/cms/tslib/class.tslib_pibase.php b/typo3/sysext/cms/tslib/class.tslib_pibase.php index 9ce2b39af404d36dfe8b4d25163b84e787266702..f39c895a09b8a7e8b3e207520273d362e974825f 100755 --- a/typo3/sysext/cms/tslib/class.tslib_pibase.php +++ b/typo3/sysext/cms/tslib/class.tslib_pibase.php @@ -468,12 +468,15 @@ class tslib_pibase { --> <div'.$this->pi_classParam('browsebox').'>'. ($showResultCount ? ' - <p>'.sprintf( - str_replace('###SPAN_BEGIN###','<span'.$this->pi_classParam('browsebox-strong').'>',$this->pi_getLL('pi_list_browseresults_displays','Displaying results ###SPAN_BEGIN###%s to %s</span> out of ###SPAN_BEGIN###%s</span>')), - $this->internal['res_count'] > 0 ? $pR1 : 0, - min(array($this->internal['res_count'],$pR2)), - $this->internal['res_count'] - ).'</p>':'' + <p>'. + ($this->internal['res_count'] ? + sprintf( + str_replace('###SPAN_BEGIN###','<span'.$this->pi_classParam('browsebox-strong').'>',$this->pi_getLL('pi_list_browseresults_displays','Displaying results ###SPAN_BEGIN###%s to %s</span> out of ###SPAN_BEGIN###%s</span>')), + $this->internal['res_count'] > 0 ? $pR1 : 0, + min(array($this->internal['res_count'],$pR2)), + $this->internal['res_count'] + ) : + $this->pi_getLL('pi_list_browseresults_noResults','Sorry, no items were found.')).'</p>':'' ). '