Commit 35c0db81 authored by Nemo Ma's avatar Nemo Ma Committed by GitHub

Merge pull request #55 from mccleaner/fix-pdo-result

fix issue of achievements being cleared on pdo mode
parents 8cba7d6e d9eebf23
......@@ -219,8 +219,9 @@ class dbstuff {
}
function result($query, $row) {
$query->fetch(PDO::FETCH_NUM, PDO::FETCH_ORI_ABS, $row);
return $query->fetchColumn();
$query->execute();
$result = $query->fetchAll(PDO::FETCH_NUM);
return $result[$row][0];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment