From 56c1fec8d8eaa6613ad6bd9f9a9941d0b2090f2b Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sat, 3 Apr 2004 15:56:11 +0000 Subject: [PATCH] MFH fixed #534 for real (remove notice if state=stable doesn't exist, and use "none" for stable version number) --- pear/PEAR/Command/Remote.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pear/PEAR/Command/Remote.php b/pear/PEAR/Command/Remote.php index 6328aef5c7..319d5517c7 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; } -- 2.50.1