Skip to content

Commit

Permalink
Merge branch 'v1.x' into qol-patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Groruk authored Jul 27, 2018
2 parents e3566bc + c157383 commit b8f6014
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/includes/SteamID/SteamID.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static function init(\Database $dbs = null)
if (is_null($dbs)) {
throw new \Exception('No suitable calculation Method found!');
}
SteamID\calc\SQL::setDB($dbs);
calc\SQL::setDB($dbs);
}
}

Expand Down
3 changes: 2 additions & 1 deletion web/steamopenid.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ function steamOauth()
$data = steamOauth();

if ($data !== false) {
$steamid = \SteamID\SteamID::toSteam2($data);
$GLOBALS['PDO']->query('SELECT aid, password FROM `:prefix_admins` WHERE authid = :authid');
$GLOBALS['PDO']->bind(':authid', \SteamID\SteamID::toSteam2($data));
$GLOBALS['PDO']->bind(':authid', $steamid);
$result = $GLOBALS['PDO']->single();
if (count($result) == 2) {
global $userbank;
Expand Down

0 comments on commit b8f6014

Please sign in to comment.