]> granicus.if.org Git - php/commitdiff
* silence warning
authorStig Bakken <ssb@php.net>
Sun, 7 Jul 2002 20:41:20 +0000 (20:41 +0000)
committerStig Bakken <ssb@php.net>
Sun, 7 Jul 2002 20:41:20 +0000 (20:41 +0000)
pear/PEAR/Frontend/CLI.php

index e5ef34d39cfe52d6cad4fd974f6b9972fc8b4f62..4c0802e5cf6192769ca12a94d917a513181c8d92 100644 (file)
@@ -130,7 +130,7 @@ class PEAR_Frontend_CLI extends PEAR
             $fp = fopen("php://stdin", "r");
             foreach ($prompts as $key => $prompt) {
                 $type = $types[$key];
-                $default = $defaults[$key];
+                $default = @$defaults[$key];
                 if ($type == 'password') {
                     system('stty -echo');
                 }