]> granicus.if.org Git - php/commitdiff
E_ALL fixes
authorTomas V.V.Cox <cox@php.net>
Tue, 26 Mar 2002 16:31:13 +0000 (16:31 +0000)
committerTomas V.V.Cox <cox@php.net>
Tue, 26 Mar 2002 16:31:13 +0000 (16:31 +0000)
pear/PEAR/Command/Config.php
pear/PEAR/Frontend/CLI.php

index d1a210946830d52d4d49f5a6e2e2905737341d8d..1fdcf32747dc009c32b98c6d5b37aef4bb0e625a 100644 (file)
@@ -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();
index fd7716aacdfb05503011de533863b6d1a18ead85..ae6d9c043659e8f7ab72440f2629c2a312b70b16 100644 (file)
@@ -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);