fixed warning if no name part exists

This commit is contained in:
Ralf Becker 2011-11-18 13:04:32 +00:00
parent 4e5a8dbc86
commit de9280dc6b

View File

@ -1037,9 +1037,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.'$$'];