]> granicus.if.org Git - php/commitdiff
* allow config-get in the default layer
authorStig Bakken <ssb@php.net>
Tue, 19 Nov 2002 02:18:30 +0000 (02:18 +0000)
committerStig Bakken <ssb@php.net>
Tue, 19 Nov 2002 02:18:30 +0000 (02:18 +0000)
pear/PEAR/Command/Config.php

index b8f14511dd723ef594e6ea60afea270d2899ec64..85304fdcaefcfcbcee37cabc125e4da617b473ed 100644 (file)
@@ -187,7 +187,7 @@ displays help for all configuration parameters.
      */
     function _checkLayer($layer = null)
     {
-        if (!empty($layer)) {
+        if (!empty($layer) && $layer != 'default') {
             $layers = $this->config->getLayers();
             if (!in_array($layer, $layers)) {
                 return " only the layers: \"" . implode('" or "', $layers) . "\" are supported";