Skip to content

Commit

Permalink
fixed: "Undefined array key 1"
Browse files Browse the repository at this point in the history
  • Loading branch information
ilzrv committed Sep 22, 2022
1 parent 4022ce5 commit 09654c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SteamAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ protected function parseSteamId()
$matches
);

if (is_numeric($matches[1])) {
if (isset($matches[1]) && is_numeric($matches[1])) {
$this->steamId = $matches[1];
return true;
}
Expand Down

0 comments on commit 09654c3

Please sign in to comment.