Skip to content

Commit

Permalink
supress error if Github API response is not as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
schorschii committed Jul 21, 2022
1 parent b021ede commit cc2435e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/ajax-handler/update-check.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ function checkUpdate() {
$json = json_decode($output, true);
if(!$json) return false;
foreach($json as $item) {
if(empty($item['tag_name'])) continue;
$availVersion = ltrim($item['tag_name'], 'v');
if(version_compare(APP_VERSION, $availVersion, '<'))
return $availVersion.(empty($item['prerelease']) ? '' : ' '.LANG['prerelease_note']);
Expand Down

0 comments on commit cc2435e

Please sign in to comment.