NobuNobu
nobun****@users*****
2007年 4月 30日 (月) 16:34:13 JST
Index: xoops2jp/html/modules/system/admin/blocksadmin/main.php diff -u xoops2jp/html/modules/system/admin/blocksadmin/main.php:1.5 xoops2jp/html/modules/system/admin/blocksadmin/main.php:1.5.8.1 --- xoops2jp/html/modules/system/admin/blocksadmin/main.php:1.5 Mon May 1 11:37:29 2006 +++ xoops2jp/html/modules/system/admin/blocksadmin/main.php Mon Apr 30 16:34:13 2007 @@ -1,5 +1,5 @@ <?php -// $Id: main.php,v 1.5 2006/05/01 02:37:29 onokazu Exp $ +// $Id: main.php,v 1.5.8.1 2007/04/30 07:34:13 nobunobu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -169,7 +169,7 @@ $sql = 'INSERT INTO '.$db->prefix('block_module_link').' (block_id, module_id) VALUES ('.$newid.', '.intval($bmid).')'; $db->query($sql); } - $groups = $xoopsUser->getGroups(); + $groups =& $xoopsUser->getGroups(); $count = count($groups); for ($i = 0; $i < $count; $i++) { $sql = "INSERT INTO ".$db->prefix('group_permission')." (gperm_groupid, gperm_itemid, gperm_name, gperm_modid) VALUES (".$groups[$i].", ".$newid.", 'block_read', 1)";