diff --git a/program/include/rcmail_output_html.php b/program/include/rcmail_output_html.php
index b96482bec..963945a59 100644
--- a/program/include/rcmail_output_html.php
+++ b/program/include/rcmail_output_html.php
@@ -1650,7 +1650,7 @@ class rcmail_output_html extends rcmail_output
$value = implode(', ', $value);
}
- return html::quote($value);
+ return html::quote((string) $value);
case 'form':
return $this->form_tag($attrib);
}