summaryrefslogtreecommitdiffstats
path: root/system/libraries/Form_validation.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-02-28 13:36:40 +0100
committerAndrey Andreev <narf@bofh.bg>2012-02-28 13:36:40 +0100
commit0adff1bac0617e5d02c7f8028c7fae8fedda9370 (patch)
tree7de1078388057d3223ec586bbd4a92fa94142b87 /system/libraries/Form_validation.php
parent46ac881006b1215e136a875491efb020c59246fb (diff)
Replace AND with &&
Diffstat (limited to 'system/libraries/Form_validation.php')
-rw-r--r--system/libraries/Form_validation.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 4c393c1d5..2ee734ae6 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -738,7 +738,7 @@ class CI_Form_validation {
{
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'];