mirror of
https://github.com/standardebooks/web.git
synced 2025-07-16 11:26:37 -04:00
Fix broken getter
This commit is contained in:
parent
11e5770413
commit
7b278da43a
1 changed files with 5 additions and 1 deletions
|
@ -30,7 +30,11 @@ class Payment{
|
||||||
* @throws Exceptions\UserNotFoundException
|
* @throws Exceptions\UserNotFoundException
|
||||||
*/
|
*/
|
||||||
protected function GetUser(): ?User{
|
protected function GetUser(): ?User{
|
||||||
return $this->_User ??= User::Get($this->UserId);
|
if(!isset($this->_User) && $this->UserId !== null){
|
||||||
|
$this->_User = User::Get($this->UserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->_User;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function GetProcessorUrl(): string{
|
protected function GetProcessorUrl(): string{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue