From: Greg Beaver Date: Sat, 3 Apr 2004 15:56:00 +0000 (+0000) Subject: fixed #534 for real (remove notice if state=stable doesn't exist, and use "none"... X-Git-Tag: php-5.0.0RC2RC1~97 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae73e40808fa2efc75535dbb47714858427b62d9;p=php fixed #534 for real (remove notice if state=stable doesn't exist, and use "none" for stable version number) --- diff --git a/pear/PEAR/Command/Remote.php b/pear/PEAR/Command/Remote.php index a7f5c0c74b..5ff2dc3ae1 100644 --- a/pear/PEAR/Command/Remote.php +++ b/pear/PEAR/Command/Remote.php @@ -278,6 +278,9 @@ parameter. if ($info['unstable']) { $unstable = '/(' . $info['unstable'] . $info['state'] . ')'; } + if (!isset($info['stable']) || !$info['stable']) { + $info['stable'] = 'none'; + } $data['data'][$info['category']][] = array( $name, $info['stable'] . $unstable, @@ -287,7 +290,7 @@ parameter. } if (!isset($data['data'])) { return $this->raiseError('no packages found'); - }; + } $this->ui->outputData($data, $command); return true; }