Skip to content
Snippets Groups Projects
Commit ae8ef440 authored by Peter Rotich's avatar Peter Rotich
Browse files

Make sure __toString returns a string

Cast email adddress to string
parent fe4b5077
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment