cvs: pear-core /PEAR/Frontend CLI.php

From: Date: Mon, 27 Mar 2006 05:13:25 +0000
Subject: cvs: pear-core /PEAR/Frontend CLI.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-4677@lists.php.net to get a copy of this message
cellog Mon Mar 27 05:13:25 2006 UTC Modified files: /pear-core/PEAR/Frontend CLI.php Log: remove as many @ from PEAR/Frontend/CLI.php as possible http://cvs.php.net/viewcvs.cgi/pear-core/PEAR/Frontend/CLI.php?r1=1.59&r2=1.60&diff_format=u Index: pear-core/PEAR/Frontend/CLI.php diff -u pear-core/PEAR/Frontend/CLI.php:1.59 pear-core/PEAR/Frontend/CLI.php:1.60 --- pear-core/PEAR/Frontend/CLI.php:1.59 Thu Mar 2 13:16:19 2006 +++ pear-core/PEAR/Frontend/CLI.php Mon Mar 27 05:13:25 2006 @@ -16,7 +16,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2006 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: CLI.php,v 1.59 2006/03/02 13:16:19 pajoye Exp $ + * @version CVS: $Id: CLI.php,v 1.60 2006/03/27 05:13:25 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1 */ @@ -143,7 +143,19 @@ continue; } } - @$this->_displayLine("#$i: $frame[class]$frame[type]$frame[function] $frame[line]"); + if (!isset($frame['class'])) { + $frame['class'] = ''; + } + if (!isset($frame['type'])) { + $frame['type'] = ''; + } + if (!isset($frame['function'])) { + $frame['function'] = ''; + } + if (!isset($frame['line'])) { + $frame['line'] = ''; + } + $this->_displayLine("#$i: $frame[class]$frame[type]$frame[function] $frame[line]"); } } } @@ -348,7 +360,7 @@ } foreach ($prompts as $key => $prompt) { $type = $types[$key]; - $default = @$defaults[$key]; + $default = isset($defaults[$key]) ? $defaults[$key] : null; if ($type == 'password') { system('stty -echo'); }

« previous php.pear.core (#4677) next »