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

Merge pull request #18717 from eileenmcnaughton/static2

#2108 fix deprecation notice take 2
parents c1de678b 50252ad3
No related branches found
No related tags found
No related merge requests found
...@@ -370,7 +370,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page { ...@@ -370,7 +370,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
CRM_Core_Error::deprecatedFunctionWarning('CRM_Core_Form::addRadio'); CRM_Core_Error::deprecatedFunctionWarning('CRM_Core_Form::addRadio');
} }
if ($attributes && !is_array($attributes)) { if ($type !== 'static' && $attributes && !is_array($attributes)) {
// The $attributes param used to allow for strings and would default to an // The $attributes param used to allow for strings and would default to an
// empty string. However, now that the variable is heavily manipulated, // empty string. However, now that the variable is heavily manipulated,
// we should expect it to always be an array. // we should expect it to always be an array.
......
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