Changeset 3225
- Timestamp:
- 07/28/2008 12:57:28 PM (4 months ago)
- Files:
-
- 1 modified
-
trunk/system/helpers/valid.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/helpers/valid.php
r3224 r3225 120 120 elseif (is_array($type)) 121 121 { 122 // Use the first type, for use with Validation 123 $type = $type[0]; 122 foreach ($type as $t) 123 { 124 // Test each type for validity 125 if (valid::credit_card($number, $t)) 126 return TRUE; 127 } 128 129 return FALSE; 124 130 } 125 131
