Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

1.10rc-2 missing string conversion in class.user.php

I downloaded the new 1.10rc-2 today, and I don't know if it was supposed to have it but I kept getting an error in (mine said line 5):

EmailAddress::__toString() must return a string value 

This is the line:

$signin_url = ROOT_PATH . "login.php"
    . ($thisclient ? "?e=".urlencode($thisclient->getEmail()) : "");

I in class.user.php that line 599 was missing (intentional or not) a cast to string:

    function __toString() {
        return $this->address;

I put:

    function __toString() {
        return (string)$this->address;

I noticed on Github the string conversion is present, line 604.


Sign In or Register to comment.