cvs: pear-core /PEAR Config.php

From: Date: Fri, 26 Nov 2004 20:33:39 +0000
Subject: cvs: pear-core /PEAR Config.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-26540@lists.php.net to get a copy of this message
cellog Fri Nov 26 15:33:39 2004 EDT Modified files: /pear-core/PEAR Config.php Log: add test to make sure the layer exists http://cvs.php.net/diff.php/pear-core/PEAR/Config.php?r1=1.80&r2=1.81&ty=u Index: pear-core/PEAR/Config.php diff -u pear-core/PEAR/Config.php:1.80 pear-core/PEAR/Config.php:1.81 --- pear-core/PEAR/Config.php:1.80 Fri Nov 26 01:05:35 2004 +++ pear-core/PEAR/Config.php Fri Nov 26 15:33:39 2004 @@ -17,7 +17,7 @@ // | Greg Beaver <cellog@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Config.php,v 1.80 2004/11/26 06:05:35 cellog Exp $ +// $Id: Config.php,v 1.81 2004/11/26 20:33:39 cellog Exp $ require_once 'PEAR.php'; require_once 'PEAR/Registry.php'; @@ -1121,6 +1121,9 @@ if ($key == '__channels') { return false; } + if (!isset($this->configuration[$layer])) { + return false; + } if ($key == 'default_channel') { // can only set this value globally $channel = 'pear.php.net';

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