diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-05-08 00:52:45 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-05-08 00:52:45 +0200 |
commit | 40306b5283b2929e344c7e11da7b736b9e51ef43 (patch) | |
tree | d4254fa1adf56cfd43d923231dc8498700018245 /system/libraries/Validation.php | |
parent | 4dc06183aa67ba1911562719c97f41c6a9529075 (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/Validation.php')
-rw-r--r-- | system/libraries/Validation.php | 2 |
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)
|