cvs: pear-core /PEAR/Command Remote.php

From: Date: Thu, 12 May 2005 04:24:34 +0000
Subject: cvs: pear-core /PEAR/Command Remote.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-31809@lists.php.net to get a copy of this message
cellog Thu May 12 00:24:34 2005 EDT Modified files: /pear-core/PEAR/Command Remote.php Log: move registry creation to function scope to avoid fatal error http://cvs.php.net/diff.php/pear-core/PEAR/Command/Remote.php?r1=1.77&r2=1.78&ty=u Index: pear-core/PEAR/Command/Remote.php diff -u pear-core/PEAR/Command/Remote.php:1.77 pear-core/PEAR/Command/Remote.php:1.78 --- pear-core/PEAR/Command/Remote.php:1.77 Mon Apr 25 01:25:12 2005 +++ pear-core/PEAR/Command/Remote.php Thu May 12 00:24:33 2005 @@ -17,7 +17,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Remote.php,v 1.77 2005/04/25 05:25:12 cellog Exp $ + * @version CVS: $Id: Remote.php,v 1.78 2005/05/12 04:24:33 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1 */ @@ -207,8 +207,8 @@ function doRemoteList($command, $options, $params) { $savechannel = $channel = $this->config->get('default_channel'); + $reg = &$this->config->getRegistry(); if (isset($options['channel'])) { - $reg = &$this->config->getRegistry(); $channel = $options['channel']; if ($reg->channelExists($channel)) { $this->config->set('default_channel', $channel);

« previous php.pear.cvs (#31809) next »