summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-05-08 00:52:45 +0200
committerDerek Jones <derek.jones@ellislab.com>2008-05-08 00:52:45 +0200
commit40306b5283b2929e344c7e11da7b736b9e51ef43 (patch)
treed4254fa1adf56cfd43d923231dc8498700018245 /system/libraries
parent4dc06183aa67ba1911562719c97f41c6a9529075 (diff)
Fixed a bug where $data was not being converted to an array properly in set_rules()
http://codeigniter.com/bug_tracker/bug/4220/
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Validation.php2
1 files changed, 1 insertions, 1 deletions
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)