Skip to content
Snippets Groups Projects
Commit cb09fd1c authored by Eileen McNaughton's avatar Eileen McNaughton
Browse files

[Ref] remove never-passed param

Removes a parameter that is never passed in
parent 4c2c4780
Branches
Tags
No related merge requests found
......@@ -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