diff options
author | Timothy Warren <tim@timshomepage.net> | 2012-06-14 13:53:17 +0200 |
---|---|---|
committer | Timothy Warren <tim@timshomepage.net> | 2012-06-14 13:53:17 +0200 |
commit | 9128231452f3ccea857a848b61bd0e6e9e319737 (patch) | |
tree | 8fc1de596a58a1d1cc1d7c4acaf5596649dda5ea /system/libraries/Form_validation.php | |
parent | b30a7c0d53c5dae5dab2311f777d67f639a5cee4 (diff) | |
parent | 19c83f6ec6dd29b2ecbeba87801d275f4e247678 (diff) |
Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into email
Diffstat (limited to 'system/libraries/Form_validation.php')
-rw-r--r-- | system/libraries/Form_validation.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index 77c968e7c..6cbe032c7 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php @@ -187,6 +187,12 @@ class CI_Form_validation { return $this; } + // Convert an array of rules to a string + if (is_array($rules)) + { + $rules = implode('|', $rules); + } + // No fields? Nothing to do... if ( ! is_string($field) OR ! is_string($rules) OR $field === '') { |