From 40306b5283b2929e344c7e11da7b736b9e51ef43 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 7 May 2008 22:52:45 +0000 Subject: Fixed a bug where $data was not being converted to an array properly in set_rules() http://codeigniter.com/bug_tracker/bug/4220/ --- system/libraries/Validation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') diff --git a/system/libraries/Validation.php b/system/libraries/Validation.php index 16e8cd74f..f628d8612 100644 --- a/system/libraries/Validation.php +++ b/system/libraries/Validation.php @@ -117,7 +117,7 @@ class CI_Validation { if ($rules == '') return; - $data[$data] = $rules; + $data = array($data => $rules); } foreach ($data as $key => $val) -- cgit v1.2.3-24-g4f1b