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

index a7f5c0c74b7076a516b70adb2b0542406057f5fe..5ff2dc3ae10aa0287fe42fa63d6820f9bd12d263 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;
     }