X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsession%2FUserInfo.php;h=c01b9eca9d4ed3eb030ca53cc3bacdf4be72100a;hb=36f4daf32c591d6b7e2435629fc6e431398b641a;hp=e844bb6c118ef7cc1c8bd898732813bc7753e464;hpb=f875f3d31867067116641af987dea4511324e96b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/session/UserInfo.php b/includes/session/UserInfo.php index e844bb6c11..c01b9eca9d 100644 --- a/includes/session/UserInfo.php +++ b/includes/session/UserInfo.php @@ -152,10 +152,10 @@ final class UserInfo { /** * Return the user token - * @return string|null + * @return string */ public function getToken() { - return $this->user === null || $this->user->getId() === 0 ? null : $this->user->getToken( true ); + return $this->user === null || $this->user->getId() === 0 ? '' : $this->user->getToken( false ); } /**