Skip to content

Commit

Permalink
[install] - remove Notice: Undefined property: stdClass::$class
Browse files Browse the repository at this point in the history
maybe not the perfect fix
  • Loading branch information
alikon committed Dec 24, 2017
1 parent aa5db0a commit 54db7d6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions layouts/joomla/form/field/radio.php
Expand Up @@ -64,9 +64,10 @@
<?php foreach ($options as $i => $option) : ?>
<?php
// Initialize some option attributes.
$checked = ((string) $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 . '"' : '';

Expand Down

0 comments on commit 54db7d6

Please sign in to comment.