commit | 3d9cec94b7cfd621111cb31808b23a1b6eaccf65 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@bofh.bg> | Sun Jul 08 21:50:19 2012 +0300 |
committer | Andrey Andreev <narf@bofh.bg> | Sun Jul 08 21:50:19 2012 +0300 |
tree | 70820a35c6cb683a8e05586fe15ba4650ba13a57 | |
parent | a64c4fbdf8f3c2c80a2964f237db79129d004c31 [diff] [blame] |
#1558
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index 3536241..b490a34 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php
@@ -460,6 +460,12 @@ $this->_field_data[$field]['postdata'] = $validation_array[$field]; } + // Don't try to validate if we have no rules set + if (empty($row['rules'])) + { + continue; + } + $this->_execute($row, explode('|', $row['rules']), $this->_field_data[$field]['postdata']); }