fix 2
This commit is contained in:
1 file changed
+2
-2
@@ -3,7 +3,7 @@ require __DIR__ . '/../../incl/util.php';
|
|||||||
header("Content-Type: application/json");
|
header("Content-Type: application/json");
|
||||||
$conn = newConnection(0);
|
$conn = newConnection(0);
|
||||||
|
|
||||||
$stmt = $conn->prepare("SELECT id, versionName, downloads, place FROM launcherversionmanifest WHERE hidden = 0 AND game = 1 ORDER BY id DESC");
|
$stmt = $conn->prepare("SELECT versionName, downloads, place FROM launcherversionmanifest WHERE hidden = 0 AND game = 1 ORDER BY id DESC");
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
|
|
||||||
$result_versions = $stmt->get_result();
|
$result_versions = $stmt->get_result();
|
||||||
@@ -34,7 +34,7 @@ $versions = array_map(function($row) use ($conn) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'id' => $row['id'],
|
'id' => $row['place'],
|
||||||
'version' => $row['versionName'],
|
'version' => $row['versionName'],
|
||||||
'displayName' => $row['versionName'],
|
'displayName' => $row['versionName'],
|
||||||
'platforms' => $platforms,
|
'platforms' => $platforms,
|
||||||
|
|||||||
Reference in new issue
Block a user