Skip to content

Commit

Permalink
Minor fix to prevent notice that blocks UpdateSuccessful output
Browse files Browse the repository at this point in the history
  • Loading branch information
milux committed Mar 8, 2020
1 parent 5fa2720 commit c99c419
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ function getDownloadURL() {
$file = null;
$matches = [];
foreach ($json->dirent_list as $item) {
if (!preg_match('/churchtools-(3\..+?)(\.zip|\.tar\.gz)/', $item->file_name, $matches)) {
if (!isset($item->file_name) ||
!preg_match('/churchtools-(3\..+?)(\.zip|\.tar\.gz)/', $item->file_name, $matches)) {
continue;
}
list(, $version, $ext) = $matches;
Expand Down

0 comments on commit c99c419

Please sign in to comment.