Skip to content

Commit

Permalink
Prevent undefined array key access in FormInput helper
Browse files Browse the repository at this point in the history
Signed-off-by: Christos Sidiropoulos <[email protected]>
  • Loading branch information
csidirop committed Nov 27, 2024
1 parent 56c7f08 commit 9522743
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 9522743

Please sign in to comment.