diff --git a/doc/rpm-build/checkout-build-archives.php b/doc/rpm-build/checkout-build-archives.php index 25ef62c2a0..91631baea1 100755 --- a/doc/rpm-build/checkout-build-archives.php +++ b/doc/rpm-build/checkout-build-archives.php @@ -295,7 +295,7 @@ function get_last_git_tag() run_cmd($cmd, $output); array_shift($output); - return trim(array_pop($output)); + return trim(array_pop($output) ?? ''); } /** @@ -435,7 +435,7 @@ function do_release() 'prerelease' => true, // create as prerelease first, as we need it for testing ); $response = github_api("/repos/EGroupware/egroupware/releases", $data); - $config['upload_url'] = preg_replace('/{\?[^}]+}$/', '', $response['upload_url']); // remove {?name,label} template + $config['upload_url'] = preg_replace('/{\?[^}]+}$/', '', $response['upload_url'] ?? ''); // remove {?name,label} template do_upload(); } @@ -1427,4 +1427,4 @@ function usage($error=null) exit(90); } exit(0); -} +} \ No newline at end of file