fixed warning if no name part exists

This commit is contained in:
Ralf Becker 2011-11-18 13:03:12 +00:00
parent 7aeb483fcc
commit 38f282bccf

View File

@ -1039,9 +1039,9 @@ abstract class bo_merge
}
if (strpos($param[0],'$$LETTERPREFIXCUSTOM') === 0)
{ //sets a Letterprefix
$replaceprefix = array();
$replaceprefixsort = array();
// ToDo Stefan: $contentstart is NOT defined here!!!
$replaceprefix = explode(' ',substr($param[0],21,strlen($contentstart)-2));
$replaceprefix = explode(' ',substr($param[0],21,-2));
foreach ($replaceprefix as $key => $nameprefix)
{
if ($this->replacements['$$'.$nameprefix.'$$'] !='') $replaceprefixsort[] = $this->replacements['$$'.$nameprefix.'$$'];