~ubuntu-branches/ubuntu/utopic/zendframework/utopic

« back to all changes in this revision

Viewing changes to library/Zend/Validate/File/Count.php

  • Committer: Bazaar Package Importer
  • Author(s): Frank Habermann
  • Date: 2010-04-28 20:10:00 UTC
  • mfrom: (1.3.1 upstream) (9.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100428201000-o347bj5qb5i3tpot
Tags: 1.10.4-1
new upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * @package   Zend_Validate
17
17
 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18
18
 * @license   http://framework.zend.com/license/new-bsd     New BSD License
19
 
 * @version   $Id: Count.php 20358 2010-01-17 19:03:49Z thomas $
 
19
 * @version   $Id: Count.php 21326 2010-03-04 20:32:39Z thomas $
20
20
 */
21
21
 
22
22
/**
249
249
            $value = $file['destination'] . DIRECTORY_SEPARATOR . $file['name'];
250
250
        }
251
251
 
252
 
        $this->addFile($value);
 
252
        if (($file === null) || !empty($file['tmp_name'])) {
 
253
            $this->addFile($value);
 
254
        }
 
255
 
253
256
        $this->_count = count($this->_files);
254
257
        if (($this->_max !== null) && ($this->_count > $this->_max)) {
255
258
            return $this->_throw($file, self::TOO_MANY);