From b5f477ba007d58564a9458fb4653a501978c705a Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Tue, 26 Mar 2002 16:31:13 +0000 Subject: [PATCH] E_ALL fixes --- pear/PEAR/Command/Config.php | 2 ++ pear/PEAR/Frontend/CLI.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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); -- 2.50.1