summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-12 20:42:16 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-12 20:42:16 +0200
commit324dadd2296649803f762eaffac3521943305400 (patch)
treef6843405a2f52795e52c87e84b5a5b12e2673ae9 /system
parent97827bc9ddad61f51ceb595e8b8b5441d4d991c2 (diff)
parentf9311136d9f821b7b0b1f2fa7c933f51803d4f96 (diff)
Merge pull request #1461 from kwoodfriend/develop
Modified Form Validation class's set_rules()
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Form_validation.php6
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 === '')
{