PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTTP » HTTP_Upload » Bug #837

double check not necessary

Details

Submitted2004-02-23 01:56 UTC
Frommaka3d at yahoo dot com dot br
Assignedantonio
StatusClosed
PackageHTTP_Upload
PHP Version4.3.4
OSirrelevant
Roadmaps(Not assigned)

Comments

[2004-02-23 01:56 UTC] maka3d at yahoo dot com dot br

Description:
------------
at line 350 the double check is not needed.

change:

if (empty($this->post_files) || count($this->post_files) < 1) {

to

if (count($this->post_files) < 1) {

[2004-05-28 18:38 UTC] maka3d at yahoo dot com dot br

count($this->post_files) return 0 if $this->post_files is NULL. That's why the first check is unecessary. :)