Index: t3lib/class.t3lib_cs.php =================================================================== --- t3lib/class.t3lib_cs.php (revision 7665) +++ t3lib/class.t3lib_cs.php (working copy) @@ -1392,7 +1392,9 @@ * @author Martin Kutschker */ function substr($charset,$string,$start,$len=null) { - if ($len===0) return ''; + if ($len === 0 || $string === '') { + return ''; + } if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'mbstring') { // cannot omit $len, when specifying charset