diff --git a/php/class-auto-upgrader.php b/php/class-auto-upgrader.php index 43e3f820..1e18a5eb 100644 --- a/php/class-auto-upgrader.php +++ b/php/class-auto-upgrader.php @@ -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 ) ) {