cvs: pear /LiveUser_Admin Admin.php

From: Date: Fri, 07 Apr 2006 22:23:02 +0000
Subject: cvs: pear /LiveUser_Admin Admin.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-39479@lists.php.net to get a copy of this message
lsmith Fri Apr 7 22:23:02 2006 UTC Modified files: /pear/LiveUser_Admin Admin.php Log: - replace isset() with array_key_exists() where applicable http://cvs.php.net/viewcvs.cgi/pear/LiveUser_Admin/Admin.php?r1=1.62&r2=1.63&diff_format=u Index: pear/LiveUser_Admin/Admin.php diff -u pear/LiveUser_Admin/Admin.php:1.62 pear/LiveUser_Admin/Admin.php:1.63 --- pear/LiveUser_Admin/Admin.php:1.62 Tue Mar 28 10:18:34 2006 +++ pear/LiveUser_Admin/Admin.php Fri Apr 7 22:23:02 2006 @@ -57,7 +57,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2006 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: Admin.php,v 1.62 2006/03/28 10:18:34 lsmith Exp $ + * @version CVS: $Id: Admin.php,v 1.63 2006/04/07 22:23:02 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -257,7 +257,7 @@ */ function &setAdminAuthContainer($authName) { - if (!isset($this->_authContainers[$authName]) + if (!array_key_exists($authName, $this->_authContainers) || !is_object($this->_authContainers[$authName]) ) { if (!isset($this->_conf['authContainers'][$authName])) { @@ -298,7 +298,7 @@ */ function &setAdminPermContainer() { - if (!isset($this->_conf['permContainer'])) { + if (!array_key_exists('permContainer', $this->_conf)) { $this->stack->push(LIVEUSER_ADMIN_ERROR, 'exception', array('msg' => 'Could not create perm container instance')); $result = false;

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