svn: /pear/pear-core/trunk/PEAR/Command/ Package.php

From: Date: Sun, 12 Dec 2010 01:40:31 +0000
Subject: svn: /pear/pear-core/trunk/PEAR/Command/ Package.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9696@lists.php.net to get a copy of this message
dufuz Sun, 12 Dec 2010 01:40:31 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=306245 Log: the in_array wasn't checking against anything. Changed paths: U pear/pear-core/trunk/PEAR/Command/Package.php Modified: pear/pear-core/trunk/PEAR/Command/Package.php =================================================================== --- pear/pear-core/trunk/PEAR/Command/Package.php 2010-12-11 23:40:27 UTC (rev 306244) +++ pear/pear-core/trunk/PEAR/Command/Package.php 2010-12-12 01:40:31 UTC (rev 306245) @@ -523,7 +523,7 @@ $dir = dirname($packageFile); $dir = substr($dir, strrpos($dir, DIRECTORY_SEPARATOR) + 1); $files = array_keys($info->getFilelist()); - if (!in_array(basename($packageFile))) { + if (!in_array(basename($packageFile), $files)) { $files[] = basename($packageFile); }

« previous php.pear.core (#9696) next »