From 32a5e3b88d8d6332514aded5e417429a3596ac50 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Mon, 17 Jun 2024 12:07:20 +1200 Subject: [PATCH] FIX Don't try to use option when it doesn't exist (#61) --- funcs_utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funcs_utils.php b/funcs_utils.php index c88b1eb..9ad8d93 100644 --- a/funcs_utils.php +++ b/funcs_utils.php @@ -380,7 +380,7 @@ function filtered_modules($cmsMajor, $input) $cmsMajor === MetaData::HIGHEST_STABLE_CMS_MAJOR ); - if ($input->getOption('unsupported-default-branch')) { + if ($input->hasOption('unsupported-default-branch') && $input->getOption('unsupported-default-branch')) { $prevCmsMajor = $cmsMajor - 1; $prevCmsRepos = MetaData::removeReposNotInCmsMajor( MetaData::getAllRepositoryMetaData(false),