cvs: pear /LiveUser LiveUser.php
| From: | Lukas Smith | Date: | Fri, 07 Apr 2006 22:21:12 +0000 |
| Subject: | cvs: pear /LiveUser LiveUser.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-39478@lists.php.net to get a copy of this message | ||
lsmith Fri Apr 7 22:21:12 2006 UTC
Modified files:
/pear/LiveUser LiveUser.php
Log:
- replace isset() with array_key_exists() where applicable
http://cvs.php.net/viewcvs.cgi/pear/LiveUser/LiveUser.php?r1=1.155&r2=1.156&diff_format=u
Index: pear/LiveUser/LiveUser.php
diff -u pear/LiveUser/LiveUser.php:1.155 pear/LiveUser/LiveUser.php:1.156
--- pear/LiveUser/LiveUser.php:1.155 Tue Mar 28 10:18:14 2006
+++ pear/LiveUser/LiveUser.php Fri Apr 7 22:21:12 2006
@@ -40,7 +40,7 @@
* @author Bjoern Kraus <krausbn@php.net>
* @copyright 2002-2006 Markus Wolff
* @license http://www.gnu.org/licenses/lgpl.txt
- * @version CVS: $Id: LiveUser.php,v 1.155 2006/03/28 10:18:14 lsmith Exp $
+ * @version CVS: $Id: LiveUser.php,v 1.156 2006/04/07 22:21:12 lsmith Exp $
* @link http://pear.php.net/LiveUser
*/
@@ -968,7 +968,7 @@
$this->dispatcher->post($this, 'onExpired');
// Check if maximum idle time is reached.
} elseif ($this->getProperty('idleTime') > 0
- &&
isset($_SESSION[$this->_options['session']['varname']]['idle'])
+ && array_key_exists('idle',
$_SESSION[$this->_options['session']['varname']])
&&
($_SESSION[$this->_options['session']['varname']]['idle'] +
$this->getProperty('idleTime')) < $now
) {
$this->logout(false);
@@ -1106,9 +1106,9 @@
$this->_startSession();
}
- if
(isset($_SESSION[$this->_options['session']['varname']]['auth'])
+ if (array_key_exists('auth',
$_SESSION[$this->_options['session']['varname']])
&&
is_array($_SESSION[$this->_options['session']['varname']]['auth'])
- &&
isset($_SESSION[$this->_options['session']['varname']]['auth_name'])
+ && array_key_exists('auth_name',
$_SESSION[$this->_options['session']['varname']])
&&
strlen($_SESSION[$this->_options['session']['varname']]['auth_name'])
> 0
) {
$containerName =
$_SESSION[$this->_options['session']['varname']]['auth_name'];
@@ -1121,7 +1121,7 @@
if
($auth->unfreeze($_SESSION[$this->_options['session']['varname']]['auth']))
{
$auth->containerName =
$_SESSION[$this->_options['session']['varname']]['auth_name'];
$this->_auth = &$auth;
- if
(isset($_SESSION[$this->_options['session']['varname']]['perm'])
+ if (array_key_exists('perm',
$_SESSION[$this->_options['session']['varname']])
&&
$_SESSION[$this->_options['session']['varname']]['perm']
) {
$perm =& LiveUser::permFactory($this->_permContainer);