From ae8ef44001d04bc527086f79b9299c59a109486a Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Thu, 7 Jan 2016 11:46:32 +0000 Subject: [PATCH] Make sure __toString returns a string Cast email adddress to string --- include/class.user.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class.user.php b/include/class.user.php index 165eebb10..cc64e7362 100644 --- a/include/class.user.php +++ b/include/class.user.php @@ -31,7 +31,7 @@ class UserEmailModel extends VerySimpleModel { ); function __toString() { - return $this->address; + return (string) $this->address; } } @@ -616,7 +616,7 @@ implements TemplateVariable { } function __toString() { - return $this->address; + return (string) $this->address; } function getVar($what) { -- GitLab