Skip to content

Commit ae73e40

Browse files
author
Greg Beaver
committed
fixed php#534 for real (remove notice if state=stable doesn't exist, and use "none" for stable version number)
1 parent 4493bbb commit ae73e40

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pear/PEAR/Command/Remote.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,9 @@ function doSearch($command, $options, $params)
278278
if ($info['unstable']) {
279279
$unstable = '/(' . $info['unstable'] . $info['state'] . ')';
280280
}
281+
if (!isset($info['stable']) || !$info['stable']) {
282+
$info['stable'] = 'none';
283+
}
281284
$data['data'][$info['category']][] = array(
282285
$name,
283286
$info['stable'] . $unstable,
@@ -287,7 +290,7 @@ function doSearch($command, $options, $params)
287290
}
288291
if (!isset($data['data'])) {
289292
return $this->raiseError('no packages found');
290-
};
293+
}
291294
$this->ui->outputData($data, $command);
292295
return true;
293296
}

0 commit comments

Comments
 (0)