diff --git a/api/src/Etemplate/Widget/Customfields.php b/api/src/Etemplate/Widget/Customfields.php index 71fa4a47be..93e2cb7e15 100644 --- a/api/src/Etemplate/Widget/Customfields.php +++ b/api/src/Etemplate/Widget/Customfields.php @@ -259,7 +259,10 @@ class Customfields extends Transformer ['download' => $stat['mtime']] ); } - Select::fix_encoded_options($data['values']); + if (is_array($data['values'])) + { + Select::fix_encoded_options($data['values']); + } } } if($fields != $customfields)