Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
samerton committed May 23, 2023
2 parents de3e4ea + 6ce5f34 commit c1f8b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/modules/Resources/pages/resources/resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -1663,7 +1663,7 @@
// Get list of all releases
$github_query = json_decode($github_query);

if(!isset($github_query[0])) $error = $resource_language->get('resources', 'unable_to_get_repo', ['repo' => Output::getClean($resource->github_username) . '/' . Output::getClean($resource->github_repo)]);
if(!is_array($github_query) || !count($github_query)) $error = $resource_language->get('resources', 'unable_to_get_repo', ['repo' => Output::getClean($resource->github_username) . '/' . Output::getClean($resource->github_repo)]);
else {
// Valid response
$releases_array = [];
Expand Down

0 comments on commit c1f8b89

Please sign in to comment.