Skip to content

Commit

Permalink
Merge pull request #1040 from csidirop/fix/undefinedArrayKey
Browse files Browse the repository at this point in the history
Prevent undefined array key access in FormInput helper
  • Loading branch information
zerocrates authored Dec 3, 2024
2 parents 56c7f08 + 9522743 commit 09d7e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/views/helpers/FormInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function formInput($name, $value = null, $attribs = null)
}

$type = 'text';
if ($attribs['type']) {
if (isset($attribs['type'])) {
$type = $attribs['type'];
unset($attribs['type']);
}
Expand Down

0 comments on commit 09d7e39

Please sign in to comment.