From 8d403bfee3b727836cfaabc7c21e0310471f0f38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Sk=C3=A5rh=C3=B8j?= <kasper@typo3.org> Date: Wed, 31 Mar 2004 14:55:51 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@173 709f56b5-9817-0410-a4d7-c38de5d9e867 --- typo3/sysext/cms/tslib/class.tslib_pibase.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/typo3/sysext/cms/tslib/class.tslib_pibase.php b/typo3/sysext/cms/tslib/class.tslib_pibase.php index 9ce2b39af404..f39c895a09b8 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>':'' ). ' -- GitLab