From e77bf4a320acc9e6bb6294681437b30eccce1a5b Mon Sep 17 00:00:00 2001 From: Norbert Penel Date: Fri, 20 May 2022 21:53:42 +0200 Subject: [PATCH 1/4] dangerous overwritting --- htdocs/core/class/commonobject.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index bf33cbe224e..da435f550d1 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -6843,13 +6843,13 @@ abstract class CommonObject if ((!isset($this->fields[$key]['default'])) || ($this->fields[$key]['notnull'] != 1)) { $out .= ''; } - foreach ($param['options'] as $key => $val) { - if ((string) $key == '') { + foreach ($param['options'] as $index => $val) { + if ((string) $index == '') { continue; } if (strpos($val, "|") !== false) list($val, $parent) = explode('|', $val); - $out .= '