X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FBAO%2FGroupContactCache.php;h=68f3d0b39f062ced2b61ce824b6704fb254030a0;hb=3f2768637f6b0571983ab33933af6c9c1249abdd;hp=570efd522870e12d2e7d09a6bc879ca17ee98be7;hpb=0a5e0d244910faef4fcf3b269257bcd7c3ff132d;p=civicrm-core.git diff --git a/CRM/Contact/BAO/GroupContactCache.php b/CRM/Contact/BAO/GroupContactCache.php index 570efd5228..68f3d0b39f 100644 --- a/CRM/Contact/BAO/GroupContactCache.php +++ b/CRM/Contact/BAO/GroupContactCache.php @@ -99,18 +99,15 @@ AND ( * * @param int $groupID * The group ID. - * @param bool $includeHiddenGroups - * Hidden groups are excluded by default. * - * @return string - * the sql query which lists the groups that need to be refreshed + * @return bool */ - public static function shouldGroupBeRefreshed($groupID, $includeHiddenGroups = FALSE) { - $query = self::groupRefreshedClause("g.id = %1", $includeHiddenGroups); + public static function shouldGroupBeRefreshed($groupID): bool { + $query = self::groupRefreshedClause('g.id = %1'); $params = [1 => [$groupID, 'Integer']]; // if the query returns the group ID, it means the group is a valid candidate for refreshing - return CRM_Core_DAO::singleValueQuery($query, $params); + return (bool) CRM_Core_DAO::singleValueQuery($query, $params); } /**