Changeset 2906
- Timestamp:
- 06/25/2008 02:40:28 PM (5 months ago)
- Files:
-
- 1 modified
-
trunk/system/helpers/upload.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/helpers/upload.php
r2849 r2906 69 69 70 70 /** 71 * Tests if a $_FILES item exists.71 * Tests if input data is valid file type, even if no upload is present. 72 72 * 73 73 * @param array $_FILES item 74 74 * @return bool 75 75 */ 76 public static function required($file)76 public static function valid($file) 77 77 { 78 78 return (is_array($file) … … 85 85 86 86 /** 87 * Tests if a $_FILES item is valid.87 * Tests if input data has valid upload data. 88 88 * 89 89 * @param array $_FILES item 90 90 * @return bool 91 91 */ 92 public static function valid(array $file)92 public static function required(array $file) 93 93 { 94 94 return (isset($file['tmp_name'])
