commit | bd1e61500383245aec702f645955a774604687c6 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Mon Jun 15 18:28:36 2015 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Mon Jun 15 18:28:36 2015 +0300 |
tree | e336cc14981cc2a5bffcac1ca5d562776aad2867 | |
parent | 0f249c7503a6bde88568d9399fd247cfae9bb234 [diff] [blame] |
Fix #3908
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index 0251286..d9ecc45 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php
@@ -621,7 +621,7 @@ 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; } }