diff options
| -rw-r--r-- | pear/PEAR/Command/Config.php | 2 | ||||
| -rw-r--r-- | pear/PEAR/Frontend/CLI.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/pear/PEAR/Command/Config.php b/pear/PEAR/Command/Config.php index d1a2109468..1fdcf32747 100644 --- a/pear/PEAR/Command/Config.php +++ b/pear/PEAR/Command/Config.php @@ -63,6 +63,8 @@ class PEAR_Command_Config extends PEAR_Command_Common { $cf =& $this->config; $failmsg = ''; + $params[0] = (isset($params[0])) ? $params[0] : null; + $params[1] = (isset($params[1])) ? $params[1] : null; switch ($command) { case 'config-show': { $keys = $cf->getKeys(); diff --git a/pear/PEAR/Frontend/CLI.php b/pear/PEAR/Frontend/CLI.php index fd7716aacd..ae6d9c0436 100644 --- a/pear/PEAR/Frontend/CLI.php +++ b/pear/PEAR/Frontend/CLI.php @@ -250,7 +250,7 @@ class PEAR_Frontend_CLI extends PEAR } else { $attribs = $rowparams; } - $w = $width[$c]; + $w = isset($width[$c]) ? $width[$c] : 0; //$cell = $data[$c]; $cell = $rowlines[$c][$r]; $l = strlen($cell); |
