cvs: pear /LiveUser_Admin Admin.php
| From: | Lukas Smith | Date: | Sun, 05 Mar 2006 20:41:45 +0000 |
| Subject: | cvs: pear /LiveUser_Admin Admin.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38926@lists.php.net to get a copy of this message | ||
lsmith Sun Mar 5 20:41:45 2006 UTC
Modified files:
/pear/LiveUser_Admin Admin.php
Log:
- fixed usage of outdated getUsers() API in init()
http://cvs.php.net/viewcvs.cgi/pear/LiveUser_Admin/Admin.php?r1=1.59&r2=1.60&diff_format=u
Index: pear/LiveUser_Admin/Admin.php
diff -u pear/LiveUser_Admin/Admin.php:1.59 pear/LiveUser_Admin/Admin.php:1.60
--- pear/LiveUser_Admin/Admin.php:1.59 Wed Mar 1 12:10:29 2006
+++ pear/LiveUser_Admin/Admin.php Sun Mar 5 20:41:45 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.59 2006/03/01 12:10:29 lsmith Exp $
+ * @version CVS: $Id: Admin.php,v 1.60 2006/03/05 20:41:45 lsmith Exp $
* @link http://pear.php.net/LiveUser_Admin
*/
@@ -356,21 +356,20 @@
if (!is_null($authUserId)) {
$match = $this->_authContainers[$key]->getUsers(
- array('auth_user_id' => $authUserId)
+ array('filters' => array('auth_user_id' =>
$authUserId))
);
- if (is_array($match) && sizeof($match) > 0) {
+ if (is_array($match) && count($match) > 0) {
$authName = $key;
break;
}
}
}
}
- }
-
- if (!isset($authName)) {
- $this->_stack->push(LIVEUSER_ADMIN_ERROR, 'exception',
- array('msg' => 'Could not determine what auth container to
use'));
- return false;
+ if (!isset($authName)) {
+ $this->_stack->push(LIVEUSER_ADMIN_ERROR, 'exception',
+ array('msg' => 'Could not determine what auth container to
use'));
+ return false;
+ }
}
if (!$this->setAdminAuthContainer($authName)) {