Re: call for help

From: Date: Mon, 14 Feb 2005 18:42:16 +0000
Subject: Re: call for help
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-36195@lists.php.net to get a copy of this message
bertrand Gugger wrote:
Hi Greg, It's perhaps idiot, but better idiot as nothing
                   $filelist[$i++] = $tfile;
                   if (!isset($atts['md5sum'])) {
                       $this->_packagefile->setFileAttribute($fname, 'md5sum', md5_file($file), $i);
                   }
Is it not
                   $filelist[$i] = $tfile;
                   if (!isset($atts['md5sum'])) {
                       $this->_packagefile->setFileAttribute($fname, 'md5sum', md5_file($file), $i++);
                   }
what you want (just increment $i after ?)
Yes! Gold star for Bertrand. Thank you, Greg

« previous php.pear.dev (#36195) next »