fixed #534 for real (remove notice if state=stable doesn't exist, and use "none" for stable version number)
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,
}
if (!isset($data['data'])) {
return $this->raiseError('no packages found');
- };
+ }
$this->ui->outputData($data, $command);
return true;
}