]> granicus.if.org Git - php/commitdiff
MFH
authorGreg Beaver <cellog@php.net>
Sat, 3 Apr 2004 15:56:11 +0000 (15:56 +0000)
committerGreg Beaver <cellog@php.net>
Sat, 3 Apr 2004 15:56:11 +0000 (15:56 +0000)
fixed #534 for real (remove notice if state=stable doesn't exist, and use "none" for stable version number)

pear/PEAR/Command/Remote.php

index 6328aef5c780609d1513a330b2ea083d7e77d78d..319d5517c759653608ce0c06d7179a211955bbfd 100644 (file)
@@ -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;
     }