cvs: pear /LiveUser_Admin Admin.php
| From: | Lukas Smith | Date: | Fri, 14 Oct 2005 23:18:50 +0000 |
| Subject: | cvs: pear /LiveUser_Admin Admin.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35561@lists.php.net to get a copy of this message | ||
lsmith Fri Oct 14 19:18:50 2005 EDT
Modified files:
/pear/LiveUser_Admin Admin.php
Log:
- dont raise an error when no user is found in getUsers() helper method (bug #5690)
http://cvs.php.net/diff.php/pear/LiveUser_Admin/Admin.php?r1=1.48&r2=1.49&ty=u
Index: pear/LiveUser_Admin/Admin.php
diff -u pear/LiveUser_Admin/Admin.php:1.48 pear/LiveUser_Admin/Admin.php:1.49
--- pear/LiveUser_Admin/Admin.php:1.48 Wed Oct 5 16:56:14 2005
+++ pear/LiveUser_Admin/Admin.php Fri Oct 14 19:18:50 2005
@@ -57,7 +57,7 @@
* @author Bjoern Kraus <krausbn@php.net>
* @copyright 2002-2005 Markus Wolff
* @license http://www.gnu.org/licenses/lgpl.txt
- * @version CVS: $Id: Admin.php,v 1.48 2005/10/05 20:56:14 lsmith Exp $
+ * @version CVS: $Id: Admin.php,v 1.49 2005/10/14 23:18:50 lsmith Exp $
* @link http://pear.php.net/LiveUser_Admin
*/
@@ -536,9 +536,7 @@
$permFilter['select'] = $first ? 'row' : 'all';
$permUsers = $this->perm->getUsers($permFilter);
if (!$permUsers) {
- $this->_stack->push(LIVEUSER_ADMIN_ERROR, 'exception',
- array('msg' => 'Could not find user in the permission
backend'));
- return false;
+ return $permUsers;
}
if ($first) {
@@ -590,9 +588,7 @@
$authFilter['select'] = $first ? 'row' : 'all';
$authUsers = $this->auth->getUsers($authFilter);
if (!$authUsers) {
- $this->_stack->push(LIVEUSER_ADMIN_ERROR, 'exception',
- array('msg' => 'Could not find user in the authentication
backend'));
- return false;
+ return $authUsers;
}
if ($first) {