mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
fixed #534 for real (remove notice if state=stable doesn't exist, and use "none" for stable version number)
This commit is contained in:
parent
4493bbb809
commit
ae73e40808
1 changed files with 4 additions and 1 deletions
|
@ -278,6 +278,9 @@ parameter.
|
||||||
if ($info['unstable']) {
|
if ($info['unstable']) {
|
||||||
$unstable = '/(' . $info['unstable'] . $info['state'] . ')';
|
$unstable = '/(' . $info['unstable'] . $info['state'] . ')';
|
||||||
}
|
}
|
||||||
|
if (!isset($info['stable']) || !$info['stable']) {
|
||||||
|
$info['stable'] = 'none';
|
||||||
|
}
|
||||||
$data['data'][$info['category']][] = array(
|
$data['data'][$info['category']][] = array(
|
||||||
$name,
|
$name,
|
||||||
$info['stable'] . $unstable,
|
$info['stable'] . $unstable,
|
||||||
|
@ -287,7 +290,7 @@ parameter.
|
||||||
}
|
}
|
||||||
if (!isset($data['data'])) {
|
if (!isset($data['data'])) {
|
||||||
return $this->raiseError('no packages found');
|
return $this->raiseError('no packages found');
|
||||||
};
|
}
|
||||||
$this->ui->outputData($data, $command);
|
$this->ui->outputData($data, $command);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue