cvs: pear /LiveUser LiveUser.php
| From: | Lukas Smith | Date: | Tue, 16 Aug 2005 13:59:07 +0000 |
| Subject: | cvs: pear /LiveUser LiveUser.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-34020@lists.php.net to get a copy of this message | ||
lsmith Tue Aug 16 09:59:07 2005 EDT
Modified files:
/pear/LiveUser LiveUser.php
Log:
- more fixes related to is_active handling and status setting
http://cvs.php.net/diff.php/pear/LiveUser/LiveUser.php?r1=1.99&r2=1.100&ty=u
Index: pear/LiveUser/LiveUser.php
diff -u pear/LiveUser/LiveUser.php:1.99 pear/LiveUser/LiveUser.php:1.100
--- pear/LiveUser/LiveUser.php:1.99 Tue Aug 16 05:08:15 2005
+++ pear/LiveUser/LiveUser.php Tue Aug 16 09:59:06 2005
@@ -40,7 +40,7 @@
* @author Bjoern Kraus <krausbn@php.net>
* @copyright 2002-2005 Markus Wolff
* @license http://www.gnu.org/licenses/lgpl.txt
- * @version CVS: $Id: LiveUser.php,v 1.99 2005/08/16 09:08:15 lsmith Exp $
+ * @version CVS: $Id: LiveUser.php,v 1.100 2005/08/16 13:59:06 lsmith Exp $
* @link http://pear.php.net/LiveUser
*/
@@ -1053,9 +1053,12 @@
$this->setRememberCookie($handle, $passwd, $remember);
$this->status = LIVEUSER_STATUS_OK;
break;
- } elseif (isset($auth->getProperty('is_active'))) {
- $this->status = LIVEUSER_STATUS_ISINACTIVE;
- break;
+ } else {
+ $is_active = $auth->getProperty('is_active');
+ if (!is_null($is_active) && !$is_active) {
+ $this->status = LIVEUSER_STATUS_ISINACTIVE;
+ break;
+ }
}
}