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),