Compatibility with higher php version

This commit is contained in:
Laurent Destailleur 2020-01-22 21:03:20 +01:00
parent c028819cab
commit a81a34badd

View File

@ -947,7 +947,8 @@ if ($id)
{ {
$showfield=1; $showfield=1;
$align="left"; $align="left";
$valuetoshow=$obj->$fieldlist[$field]; $nameoffield = $fieldlist[$field];
$valuetoshow=$obj->$nameoffield;
if ($value == 'element') if ($value == 'element')
{ {
$valuetoshow = isset($elementList[$valuetoshow])?$elementList[$valuetoshow]:$valuetoshow; $valuetoshow = isset($elementList[$valuetoshow])?$elementList[$valuetoshow]:$valuetoshow;