cvs: pear-core /PEAR/Command Registry.php

From: Date: Sun, 26 Aug 2007 18:30:34 +0000
Subject: cvs: pear-core /PEAR/Command Registry.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-48505@lists.php.net to get a copy of this message
cellog Sun Aug 26 18:30:34 2007 UTC Modified files: /pear-core/PEAR/Command Registry.php Log: remove odd warning when running in a phar http://cvs.php.net/viewvc.cgi/pear-core/PEAR/Command/Registry.php?r1=1.79&r2=1.80&diff_format=u Index: pear-core/PEAR/Command/Registry.php diff -u pear-core/PEAR/Command/Registry.php:1.79 pear-core/PEAR/Command/Registry.php:1.80 --- pear-core/PEAR/Command/Registry.php:1.79 Tue May 29 16:38:16 2007 +++ pear-core/PEAR/Command/Registry.php Sun Aug 26 18:30:33 2007 @@ -16,7 +16,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2006 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Registry.php,v 1.79 2007/05/29 16:38:16 cellog Exp $ + * @version CVS: $Id: Registry.php,v 1.80 2007/08/26 18:30:33 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1 */ @@ -180,6 +180,10 @@ $data['headline'] = array('Channel', 'Package', 'Version', 'State'); } + if (count($installed) && !isset($data['data'])) { + $data['data'] = array(); + } + foreach ($installed as $package) { $pobj = $reg->getPackage(isset($package['package']) ? $package['package'] : $package['name'], $channel);

« previous php.pear.cvs (#48505) next »