Replace AND with &&
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 4c393c1..2ee734a 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -738,7 +738,7 @@
{
if ( ! isset($this->_field_data[$field], $this->_field_data[$field]['postdata']))
{
- return ($default === TRUE AND count($this->_field_data) === 0) ? ' selected="selected"' : '';
+ return ($default === TRUE && count($this->_field_data) === 0) ? ' selected="selected"' : '';
}
$field = $this->_field_data[$field]['postdata'];