From e4f95d9c20604ca7a1aa29e32efce19253fe89fc Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 7 Oct 2021 11:57:20 +0200 Subject: [PATCH] fix missing icons after previous commit --- api/src/Etemplate/Widget/Tree.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Etemplate/Widget/Tree.php b/api/src/Etemplate/Widget/Tree.php index dcab22cced..b05deaac1c 100644 --- a/api/src/Etemplate/Widget/Tree.php +++ b/api/src/Etemplate/Widget/Tree.php @@ -297,7 +297,7 @@ class Tree extends Etemplate\Widget { $form_name = self::form_name($cname, $this->id); - if (!empty($this->attrs['image_path']) && ($templated_path = self::templateImagePath($this->attrs['image_path'])) != $this->attrs['image_path']) + if (($templated_path = self::templateImagePath($this->attrs['image_path'] ?? null)) !== ($this->attrs['image_path'] ?? null)) { self::setElementAttribute($form_name, 'image_path', $this->attrs['image_path'] = $templated_path); //error_log(__METHOD__."() setting templated image-path for $form_name: $templated_path");