Changeset 3602
- Timestamp:
- 10/15/2008 11:08:15 AM (7 weeks ago)
- Files:
-
- 1 modified
-
trunk/system/classes/validation.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/classes/validation.php
r3536 r3602 472 472 foreach ($fields as $f) 473 473 { 474 $this[$f] = call_user_func($callback, $this[$f]);474 $this[$f] = is_array($this[$f]) ? array_map($callback, $this[$f]) : call_user_func($callback, $this[$f]); 475 475 } 476 476 } 477 477 else 478 478 { 479 $this[$field] = call_user_func($callback, $this[$field]);479 $this[$field] = is_array($this[$field]) ? array_map($callback, $this[$field]) : call_user_func($callback, $this[$field]); 480 480 } 481 481 } … … 617 617 foreach ($fields as $f) 618 618 { 619 $this[$f] = call_user_func($callback, $this[$f]);619 $this[$f] = is_array($this[$f]) ? array_map($callback, $this[$f]) : call_user_func($callback, $this[$f]); 620 620 } 621 621 } 622 622 else 623 623 { 624 $this[$field] = call_user_func($callback, $this[$field]);624 $this[$field] = is_array($this[$field]) ? array_map($callback, $this[$field]) : call_user_func($callback, $this[$field]); 625 625 } 626 626 }
