cvs: pear-core /PEAR/Command Install.php
| From: | Greg Beaver | Date: | Mon, 23 May 2005 02:48:00 +0000 |
| Subject: | cvs: pear-core /PEAR/Command Install.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-32022@lists.php.net to get a copy of this message | ||
cellog Sun May 22 22:48:00 2005 EDT
Modified files:
/pear-core/PEAR/Command Install.php
Log:
fix warning if $latest is not an array
http://cvs.php.net/diff.php/pear-core/PEAR/Command/Install.php?r1=1.97&r2=1.98&ty=u
Index: pear-core/PEAR/Command/Install.php
diff -u pear-core/PEAR/Command/Install.php:1.97 pear-core/PEAR/Command/Install.php:1.98
--- pear-core/PEAR/Command/Install.php:1.97 Wed May 4 00:56:46 2005
+++ pear-core/PEAR/Command/Install.php Sun May 22 22:48:00 2005
@@ -16,7 +16,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Install.php,v 1.97 2005/05/04 04:56:46 cellog Exp $
+ * @version CVS: $Id: Install.php,v 1.98 2005/05/23 02:48:00 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
*/
@@ -392,7 +392,7 @@
}
}
PEAR::staticPopErrorHandling();
- if (PEAR::isError($latest)) {
+ if (PEAR::isError($latest) || !is_array($latest)) {
continue;
}
foreach ($latest as $package => $info) {