diff --git a/HTML/QuickForm/radio.php b/HTML/QuickForm/radio.php index c7994cf54..6413595a6 100644 --- a/HTML/QuickForm/radio.php +++ b/HTML/QuickForm/radio.php @@ -78,7 +78,7 @@ function __construct($elementName=null, $elementLabel=null, $text=null, $value=n if ( ! $this->getAttribute('id') ) { //hack to add 'id' for radio static $idTextStr = 1; - if (CRM_Utils_Array::value('id_suffix', $attributes)) { + if (!empty($attributes['id_suffix'])) { $idSuffix = $attributes['id_suffix']; $this->removeAttribute('id_suffix'); }