From 98d5e8612167badc1d18cacc9b32abc24c4dcc03 Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 5 Feb 2021 08:57:48 -0700 Subject: [PATCH] Avoid some warnings --- api/src/Etemplate/Widget.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/Etemplate/Widget.php b/api/src/Etemplate/Widget.php index 4ba85a16a5..aded33c84f 100644 --- a/api/src/Etemplate/Widget.php +++ b/api/src/Etemplate/Widget.php @@ -581,6 +581,7 @@ class Widget unset($attrs['type']); foreach($attrs as $name => &$value) { + if(!is_string($value)) continue; $value = self::expand_name($value,$expand['c'], $expand['row'], $expand['c_'], $expand['row_'], $expand['cont']); } if($attrs['attributes'])