Skip to content
Snippets Groups Projects
Unverified Commit 1771f312 authored by colemanw's avatar colemanw Committed by GitHub
Browse files

Merge pull request #18484 from eileenmcnaughton/ref

#2043 remove pass-by-ref
parents 83634553 9ce8301b
No related branches found
No related tags found
No related merge requests found
......@@ -131,20 +131,15 @@ class CRM_Core_BAO_Block {
* Check if the current block exits.
*
* @param string $blockName
* Bloack name.
* Block name.
* @param array $params
* Associated array 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]);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment