Skip to content

Commit

Permalink
Remove redundant array element (#27181)
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkyKZ authored and wilsonge committed Nov 30, 2019
1 parent 49e5785 commit 75590d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/joomla/form/field/radio/switcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
$active = ((string) $option->value == $value) ? 'class="active"' : '';
$oid = $id . $i;
$ovalue = htmlspecialchars($option->value, ENT_COMPAT, 'UTF-8');
$attributes = array_filter(array($checked, $active, null));
$attributes = array_filter([$checked, $active]);
$text = $options[$i]->text;
?>
<?php echo sprintf($input, $oid, $name, $ovalue, implode(' ', $attributes)); ?>
Expand Down

0 comments on commit 75590d4

Please sign in to comment.