cvs: pear /LiveUser/Auth Common.php
| From: | Lukas Smith | Date: | Mon, 15 Aug 2005 11:39:33 +0000 |
| Subject: | cvs: pear /LiveUser/Auth Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-33979@lists.php.net to get a copy of this message | ||
lsmith Mon Aug 15 07:39:33 2005 EDT
Modified files:
/pear/LiveUser/Auth Common.php
Log:
- fixed BC break in recent versions that made is_active a required rather than optional field
http://cvs.php.net/diff.php/pear/LiveUser/Auth/Common.php?r1=1.30&r2=1.31&ty=u
Index: pear/LiveUser/Auth/Common.php
diff -u pear/LiveUser/Auth/Common.php:1.30 pear/LiveUser/Auth/Common.php:1.31
--- pear/LiveUser/Auth/Common.php:1.30 Mon Aug 15 06:32:03 2005
+++ pear/LiveUser/Auth/Common.php Mon Aug 15 07:39:33 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: Common.php,v 1.30 2005/08/15 10:32:03 lsmith Exp $
+ * @version CVS: $Id: Common.php,v 1.31 2005/08/15 11:39:33 lsmith Exp $
* @link http://pear.php.net/LiveUser
*/
@@ -434,8 +434,8 @@
// If login is successful (user data has been read)
// ...we still need to check if this user is declared active
- if (array_key_exists('is_active', $this->propertyValues)
- && $this->propertyValues['is_active'] !== false
+ if (!array_key_exists('is_active', $this->propertyValues)
+ || $this->propertyValues['is_active'] !== false
) {
// ...and if so, we have a successful login (hooray)!
$this->loggedIn = true;