Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
cb09fd1c
Commit
cb09fd1c
authored
3 years ago
by
Eileen McNaughton
Browse files
Options
Downloads
Patches
Plain Diff
[Ref] remove never-passed param
Removes a parameter that is never passed in
parent
4c2c4780
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Contact/BAO/GroupContactCache.php
+4
-7
4 additions, 7 deletions
CRM/Contact/BAO/GroupContactCache.php
with
4 additions
and
7 deletions
CRM/Contact/BAO/GroupContactCache.php
+
4
−
7
View file @
cb09fd1c
...
...
@@ -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
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment