Skip to content

Commit

Permalink
Build: Do not return broken builds on platform-specific get_version()
Browse files Browse the repository at this point in the history
  • Loading branch information
AniLeo committed Sep 30, 2024
1 parent 2e7ba40 commit d1bafc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion objects/Build.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,10 @@ public static function get_latest(?string $platform) : ?Build
else
{
$s_platform = mysqli_real_escape_string($db, $platform);

$query = mysqli_query($db, "SELECT * FROM `builds`
WHERE `filename_{$s_platform}` IS NOT NULL
AND (`broken` IS NULL OR `broken` != 1)
ORDER BY `merge_datetime` DESC LIMIT 1;");
}

Expand Down

0 comments on commit d1bafc4

Please sign in to comment.