From 50252ad3a21c0043368e7125b2cd812ccd57f135 Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 9 Oct 2020 16:43:34 +1300 Subject: [PATCH] dev/core#2108 fix deprecation notice take 2 Loosens the deprecation notice - alternative to https://github.com/civicrm/civicrm-core/pull/18716 but we should merge both IMHO --- CRM/Core/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index 2cd2c226b5..9795790fa3 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -370,7 +370,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page { 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 // empty string. However, now that the variable is heavily manipulated, // we should expect it to always be an array. -- 2.25.1