Skip to content

Commit e8a23a5

Browse files
committed
An update to the bcit-ci#2639 fix
1 parent f4bfb16 commit e8a23a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

system/helpers/form_helper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,10 @@ function set_checkbox($field = '', $value = '', $default = FALSE)
717717
{
718718
return ($default === TRUE) ? ' checked="checked"' : '';
719719
}
720+
elseif (is_array($input) && in_array($value, $input, TRUE))
721+
{
722+
return ' checked="checked"';
723+
}
720724

721725
return ($input === $value) ? ' checked="checked"' : '';
722726
}

0 commit comments

Comments
 (0)