Minahito
minah****@users*****
2006年 8月 7日 (月) 20:32:17 JST
Index: xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php diff -u xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.10 xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.11 --- xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.10 Wed Jul 19 19:21:04 2006 +++ xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php Mon Aug 7 20:32:17 2006 @@ -1,7 +1,7 @@ <?php /** * @package user - * @version $Id: UserAdminEditForm.class.php,v 1.1.2.10 2006/07/19 10:21:04 minahito Exp $ + * @version $Id: UserAdminEditForm.class.php,v 1.1.2.11 2006/08/07 11:32:17 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -278,9 +278,15 @@ $this->_mIsNew = $obj->isNew(); $groups =& $obj->getGroups(); - $i = 0; - foreach ($groups as $gid) { - $this->set('groups', $i++, $gid); + + if ($this->_mIsNew) { + $this->set('groups', 0, XOOPS_GROUP_USERS); + } + else { + $i = 0; + foreach ($groups as $gid) { + $this->set('groups', $i++, $gid); + } } }