We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02d48bf commit a3b46f6Copy full SHA for a3b46f6
src/Syntax/SteamApi/Containers/Player.php
@@ -55,7 +55,7 @@ public function __construct($player)
55
$this->communityVisibilityState = $player->communityvisibilitystate;
56
$this->profileState = $this->checkIssetField($player, 'profilestate');
57
$this->personaName = $player->personaname;
58
- $this->lastLogoff = date('F jS, Y h:ia', $player->lastlogoff);
+ $this->lastLogoff = isset($player->lastlogoff) ? date('F jS, Y h:ia', $player->lastlogoff) : null;
59
$this->profileUrl = $player->profileurl;
60
$this->avatar = $this->getImageForAvatar($player->avatar);
61
$this->avatarMedium = $this->getImageForAvatar($player->avatarmedium);
0 commit comments