Skip to content

Commit

Permalink
Merge pull request #11 from Nerakc/develop
Browse files Browse the repository at this point in the history
No longer causes fatal error when GitHub is down
  • Loading branch information
mozkomor05 authored Nov 29, 2021
2 parents c361a47 + 105e3f6 commit cc46109
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions php/class-auto-upgrader.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ private function check_new_version() {

$body = json_decode( $body, true );

if ( empty( $body ) ) {
return false;
}

$versions = array_column( $body, 'name' );

if ( empty( $versions ) ) {
Expand Down

0 comments on commit cc46109

Please sign in to comment.