Skip to content
Snippets Groups Projects
Unverified Commit 3f276863 authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #20456 from eileenmcnaughton/group2

[Ref] remove never-passed param
parents 0a5e0d24 cb09fd1c
Branches
Tags
Loading
......@@ -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);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment