Skip to content

Commit eec94a4

Browse files
committed
run rector
1 parent 345eb4a commit eec94a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Helpers/form_helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ function set_radio(string $field, string $value = '', bool $default = false): st
656656

657657
$postInput = $request->getPost($field);
658658

659-
$input = $oldInput !== null ? $oldInput : ($postInput !== null ? $postInput : $default);
659+
$input = $oldInput ?? $postInput ?? $default;
660660

661661
if (is_array($input)) {
662662
// Note: in_array('', array(0)) returns TRUE, do not use it

0 commit comments

Comments
 (0)