diff --git a/forms/UploadField.php b/forms/UploadField.php index 8d35f2f6a..dc201b58a 100644 --- a/forms/UploadField.php +++ b/forms/UploadField.php @@ -1208,7 +1208,7 @@ class UploadField extends FileField { 'edit_url' => $customised->UploadFieldEditLink, 'size' => $file->getAbsoluteSize(), 'type' => File::get_file_type($file->getFilename()), - 'buttons' => $customised->UploadFieldFileButtons, + 'buttons' => (string)$customised->UploadFieldFileButtons, 'fieldname' => $this->getName() ); }