cvs: pear /PEAR_Info Info.php

From: Date: Sat, 25 Feb 2006 23:45:25 +0000
Subject: cvs: pear /PEAR_Info Info.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38624@lists.php.net to get a copy of this message
fa Sat Feb 25 23:45:25 2006 UTC Modified files: /pear/PEAR_Info Info.php Log: fixed bugs #6050 #6051 #6732 http://cvs.php.net/viewcvs.cgi/pear/PEAR_Info/Info.php?r1=1.20&r2=1.21&diff_format=u Index: pear/PEAR_Info/Info.php diff -u pear/PEAR_Info/Info.php:1.20 pear/PEAR_Info/Info.php:1.21 --- pear/PEAR_Info/Info.php:1.20 Wed May 18 19:27:22 2005 +++ pear/PEAR_Info/Info.php Sat Feb 25 23:45:25 2006 @@ -16,7 +16,7 @@ // | Authors: Davey Shafik <davey@pixelated-dreams.com> | // +----------------------------------------------------------------------+ // -// $Id: Info.php,v 1.20 2005/05/18 19:27:22 sean Exp $ +// $Id: Info.php,v 1.21 2006/02/25 23:45:25 fa Exp $ require_once 'PEAR/Remote.php'; require_once 'PEAR/Registry.php'; @@ -52,6 +52,8 @@ $this->reg = new PEAR_Registry($this->config->get('php_dir')); // get PEARs packageInfo to show version number at the top of the HTML $pear = $this->reg->packageInfo("PEAR"); + $pear['version'] = $this->reg->getPackage("PEAR")->getVersion(); + $this->index = array(); $this->list_options = false; if ($this->config->get('preferred_state') == 'stable') { $this->list_options = true; @@ -150,7 +152,7 @@ $packages = ''; foreach ($available as $name) { $installed = $this->reg->packageInfo($name); - if (strlen($installed['package']) > 1) { + if (isset($installed['package']) && strlen($installed['package']) > 1) { if (!isset($old_index)) { $old_index = ''; } @@ -331,7 +333,7 @@ echo '<tr class="h"><td>Package</td><td>Maintainers</td></tr>'; foreach ($available as $name) { $installed = $this->reg->packageInfo($name); - if (strlen($installed['package']) > 1) { + if (isset($installed['package']) && strlen($installed['package']) > 1) { ?> <tr> <td class="e">

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