summaryrefslogtreecommitdiffstats
path: root/system/libraries/Form_validation.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-06-15 17:28:36 +0200
committerAndrey Andreev <narf@devilix.net>2015-06-15 17:28:36 +0200
commitbd1e61500383245aec702f645955a774604687c6 (patch)
treee336cc14981cc2a5bffcac1ca5d562776aad2867 /system/libraries/Form_validation.php
parent0f249c7503a6bde88568d9399fd247cfae9bb234 (diff)
Fix #3908
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 0251286ea..d9ecc45f9 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -621,7 +621,7 @@ class CI_Form_validation {
elseif (is_array($rule) && isset($rule[0], $rule[1]) && is_callable($rule[1]))
{
$callback = TRUE;
- $rules = array($rule[0] => $rule[1]);
+ $rules = array(array($rule[0], $rule[1]));
break;
}
}