Changeset 287 for branches/1.1dev/lib
- Timestamp:
- Oct 21, 2007 1:08:47 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1dev/lib/Upload.inc.php
r286 r287 371 371 // Single upload. 372 372 if (isset($custom_file_name)) { 373 if (is_array($custom_file_name) && sizeof($custom_file_name) == 1 ) {373 if (is_array($custom_file_name) && sizeof($custom_file_name) == 1 && '' != trim($custom_file_name[0])) { 374 374 // Is an array, but just one value. Pull it out. 375 $ custom_file_name = current($custom_file_name);375 $file_name = trim($custom_file_name[0]); 376 376 raiseMsg(sprintf(_("The file %s has been renamed to %s."), $files['name'][$i], $file_name), MSG_NOTICE, __FILE__, __LINE__); 377 377 logMsg(sprintf('Using custom file name: %s', $file_name), LOG_DEBUG, __FILE__, __LINE__); 378 } else if (!is_array($custom_file_name) && '' != $custom_file_name) {378 } else if (!is_array($custom_file_name) && '' != trim($custom_file_name)) { 379 379 // Valid custom file name. 380 380 $file_name = $custom_file_name;
Note: See TracChangeset
for help on using the changeset viewer.