From 54db7d67fa6c5d80ddd86d5ecda730be28d09760 Mon Sep 17 00:00:00 2001 From: Nicola Galgano Date: Sun, 24 Dec 2017 09:26:47 +0100 Subject: [PATCH] [install] - remove Notice: Undefined property: stdClass::$class maybe not the perfect fix --- layouts/joomla/form/field/radio.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/layouts/joomla/form/field/radio.php b/layouts/joomla/form/field/radio.php index 82f87fdb0c5ad..040a02dd14fe0 100644 --- a/layouts/joomla/form/field/radio.php +++ b/layouts/joomla/form/field/radio.php @@ -64,9 +64,10 @@ $option) : ?> value === $value) ? 'checked="checked"' : ''; - $disabled = !empty($option->disable) ? 'disabled' : ''; - $style = $disabled ? 'style="pointer-events: none"' : ''; + $checked = ((string) $option->value === $value) ? 'checked="checked"' : ''; + $disabled = !empty($option->disable) ? 'disabled' : ''; + $style = $disabled ? 'style="pointer-events: none"' : ''; + $option->class = !empty($option->class) ? $option->class : ''; $option->class = trim($option->class . ' ' . $disabled); $optionClass = !empty($option->class) ? 'class="' . $option->class . '"' : '';