From 1aa1b0a3ea882b5324b7009628a90f44a18baf8c Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 26 Feb 2018 12:15:30 +0100 Subject: [PATCH] Fix: avoid warning during "upgrade2" process --- htdocs/core/class/commonobject.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index fd22164914149..90747f0675b8b 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -4495,7 +4495,7 @@ function fetch_optionals($rowid=null, $optionsArray=null) { $extrafields->fetch_name_optionals_label($this->table_element); } - $optionsArray = $extrafields->attributes[$this->table_element]['label']; + $optionsArray = (! empty($extrafields->attributes[$this->table_element]['label'])?$extrafields->attributes[$this->table_element]['label']:''); } else {