Hallo,
wir haben auf php7 umgestellt und gekommen bei diesem Code:
Code:
protected function loadValueHook($varValue,$objAttribute=null)
{
if (isset($GLOBALS['CUSTOMELEMENTS_HOOKS']['loadValue']) && count($GLOBALS['CUSTOMELEMENTS_HOOKS']['loadValue']) > 0)
{
foreach($GLOBALS['CUSTOMELEMENTS_HOOKS']['loadValue'] as $callback)
{
$varValue = ControllerHelper::importStatic($callback[0])->$callback[1]($varValue,$objAttribute); // <- in dieser Zeile
}
}
return $varValue;
}
folgenden Fehler:
Code:
Fatal error: Uncaught exception Error with message Function name must be a string
Kann mir jemand helfen, wir muss der Code sein, dass es für PHP7 funktioniert?
Danke und VG, Michael
Lesezeichen