summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2004-04-03 15:56:00 +0000
committerGreg Beaver <cellog@php.net>2004-04-03 15:56:00 +0000
commitae73e40808fa2efc75535dbb47714858427b62d9 (patch)
tree20c66f1ab606e57078bc394f39aa8ba5e04f43d0
parent4493bbb80960002c7a381546fac1c1920e4905a5 (diff)
downloadphp-git-ae73e40808fa2efc75535dbb47714858427b62d9.tar.gz
fixed #534 for real (remove notice if state=stable doesn't exist, and use "none" for stable version number)
-rw-r--r--pear/PEAR/Command/Remote.php5
1 files changed, 4 insertions, 1 deletions
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;
}