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
1771f312
Unverified
Commit
1771f312
authored
4 years ago
by
colemanw
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #18484 from eileenmcnaughton/ref
#2043
remove pass-by-ref
parents
83634553
9ce8301b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Core/BAO/Block.php
+5
-10
5 additions, 10 deletions
CRM/Core/BAO/Block.php
with
5 additions
and
10 deletions
CRM/Core/BAO/Block.php
+
5
−
10
View file @
1771f312
...
...
@@ -131,20 +131,15 @@ class CRM_Core_BAO_Block {
* Check if the current block exits.
*
* @param string $blockName
* Blo
a
ck name.
* Block name.
* @param array $params
* A
ssociated a
rray of submitted fields.
* Array of submitted fields.
*
* @return bool
* true if the block
exits, otherwise false
* true if the block
is in the params and is an array
*/
public
static
function
blockExists
(
$blockName
,
&
$params
)
{
// return if no data present
if
(
empty
(
$params
[
$blockName
])
||
!
is_array
(
$params
[
$blockName
]))
{
return
FALSE
;
}
return
TRUE
;
public
static
function
blockExists
(
$blockName
,
$params
)
{
return
!
empty
(
$params
[
$blockName
])
&&
is_array
(
$params
[
$blockName
]);
}
/**
...
...
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