From 7bc88c39368b392656bea0ffae7582d9856c5b19 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Fri, 10 Jan 2014 08:54:25 -0600 Subject: [PATCH] Ensure FormField::toString() returns a string Fixes #390 --- include/class.forms.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.forms.php b/include/class.forms.php index a09f25cdb..92876b232 100644 --- a/include/class.forms.php +++ b/include/class.forms.php @@ -284,7 +284,7 @@ class FormField { * $value - PHP value of the field's content */ function toString($value) { - return $value; + return (string) $value; } /** -- GitLab