[eluser]Xollef[/eluser]
It seems I stumbled upon a bug when I created a form checkbox in a view file with the name protected. I am using codeigniter version 1.6
The input:
<input type="checkbox" name="protected" value="true" <?php echo $this->validation->set_checkbox('protected', 'true'); ?> tabindex="9" />
The error:
A PHP Error was encountered
Severity: Warning
Message: in_array() [function.in-array]: Wrong datatype for second argument
Filename: libraries/Input.php
Line Number: 91
When submitting the form with that checkbox checked the error always appeared. Renaming the checkbox solves the problem.
Maybe the name protected should be on a reserved names list or some such.