Changeset 118


Ignore:
Timestamp:
May 17, 2006 5:01:45 AM (18 years ago)
Author:
scdev
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Upload.inc.php

    r106 r118  
    104104     * @access  public
    105105     * @param   string  $form_name          The name of the form to process.
    106      * @param   string  $custom_file_name   The new name of the file. does not work if processing multiple files.
     106     * @param   string  $custom_file_name   The new name of the file. An array of filename in the case of multiple files.
    107107     * @return  mixed   Returns FALSE if a major error occured preventing any file uploads.
    108108     *                  Returns an empty array if any minor errors occured or no files were found.
     
    171171            } else {
    172172                // Multiple upload. Final file names must be array.
    173                 if (isset($custom_file_name) && is_array($custom_file_name) && '' != $custom_file_name[$i]) {
     173                if (isset($custom_file_name) && is_array($custom_file_name) && is_array($custom_file_name[$i]) && '' != $custom_file_name[$i]) {
    174174                    // Valid custom file name.
    175175                    $file_name = $custom_file_name[$i];
Note: See TracChangeset for help on using the changeset viewer.