Changeset 2119

Show
Ignore:
Timestamp:
02/21/08 19:35:56 (7 months ago)
Author:
Shadowhand
Message:

Merged r2117 and r2118 into releases/2.1.2

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • releases/2.1.2/modules/forge/libraries/Form_Upload.php

    r2116 r2119  
    171171        public function rule_size($size) 
    172172        { 
     173                // Skip the field if it is empty 
     174                if (empty($this->upload) OR $this->upload['error'] === UPLOAD_ERR_NO_FILE) 
     175                        return; 
     176 
    173177                $bytes = (int) $size; 
    174178