mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-30 09:48:38 +01:00
fix PHP 8.0 error: implode(): Argument #2 ($array) must be of type ?array, string given
This commit is contained in:
parent
bec53dc57d
commit
9babcdf010
@ -1740,13 +1740,12 @@ abstract class Merge
|
|||||||
if (strpos($param[0],'$$LETTERPREFIXCUSTOM') === 0)
|
if (strpos($param[0],'$$LETTERPREFIXCUSTOM') === 0)
|
||||||
{ //sets a Letterprefix
|
{ //sets a Letterprefix
|
||||||
$replaceprefixsort = array();
|
$replaceprefixsort = array();
|
||||||
// ToDo Stefan: $contentstart is NOT defined here!!!
|
|
||||||
$replaceprefix = explode(' ',substr($param[0],21,-2));
|
$replaceprefix = explode(' ',substr($param[0],21,-2));
|
||||||
foreach ($replaceprefix as $nameprefix)
|
foreach ($replaceprefix as $nameprefix)
|
||||||
{
|
{
|
||||||
if ($this->replacements['$$'.$nameprefix.'$$'] !='') $replaceprefixsort[] = $this->replacements['$$'.$nameprefix.'$$'];
|
if ($this->replacements['$$'.$nameprefix.'$$'] !='') $replaceprefixsort[] = $this->replacements['$$'.$nameprefix.'$$'];
|
||||||
}
|
}
|
||||||
$replace = implode($replaceprefixsort,' ');
|
$replace = implode(' ', $replaceprefixsort);
|
||||||
}
|
}
|
||||||
return $replace;
|
return $replace;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user