diff options
author | Andrey Andreev <narf@devilix.net> | 2015-06-15 17:28:36 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-06-15 17:28:36 +0200 |
commit | bd1e61500383245aec702f645955a774604687c6 (patch) | |
tree | e336cc14981cc2a5bffcac1ca5d562776aad2867 | |
parent | 0f249c7503a6bde88568d9399fd247cfae9bb234 (diff) |
Fix #3908
-rw-r--r-- | system/libraries/Form_validation.php | 2 |
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; } } |