Skip to content

Commit

Permalink
Merge pull request #439 from jaredhendrickson13/next_patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhendrickson13 authored Jan 18, 2024
2 parents 2ce0bc9 + 17a01f3 commit a550cf2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ class APISystemAPIVersionRead extends APIModel {
$releases = ["last_updated" => time(), "releases" => $api_resp];
file_put_contents($releases_file, json_encode($releases));
}
return $releases;

# Ensure releases is always an array
return (is_array($releases)) ? $releases : [];
}

public static function get_all_available_versions() {
Expand Down

0 comments on commit a550cf2

Please sign in to comment.