Quantcast
Channel: Suggestions and Feedback Discussions on osTicket Forums
Viewing all articles
Browse latest Browse all 115

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

$
0
0
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 header.inc.php (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.

Viewing all articles
Browse latest Browse all 115

Trending Articles