From a81a34baddd0f2adcc98052a1d9f2d193dea5ff6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 22 Jan 2020 21:03:20 +0100 Subject: [PATCH] Compatibility with higher php version --- htdocs/admin/dict.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index 38f991faf52..f338e7c615f 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -947,7 +947,8 @@ if ($id) { $showfield=1; $align="left"; - $valuetoshow=$obj->$fieldlist[$field]; + $nameoffield = $fieldlist[$field]; + $valuetoshow=$obj->$nameoffield; if ($value == 'element') { $valuetoshow = isset($elementList[$valuetoshow])?$elementList[$valuetoshow]:$valuetoshow;