NobuNobu
nobun****@users*****
2006年 12月 3日 (日) 00:57:39 JST
Index: xoops2jp/html/kernel/block.php diff -u xoops2jp/html/kernel/block.php:1.2.8.10.2.3 xoops2jp/html/kernel/block.php:1.2.8.10.2.4 --- xoops2jp/html/kernel/block.php:1.2.8.10.2.3 Sat Nov 25 19:12:31 2006 +++ xoops2jp/html/kernel/block.php Sun Dec 3 00:57:39 2006 @@ -1,5 +1,5 @@ <?php -// $Id: block.php,v 1.2.8.10.2.3 2006/11/25 10:12:31 minahito Exp $ +// $Id: block.php,v 1.2.8.10.2.4 2006/12/02 15:57:39 nobunobu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -269,9 +269,10 @@ function load($id) { $handler =& xoops_gethandler('block'); - $obj =& $handler->get($id); - foreach ($obj->vars as $k => $v) { - $this->assignVar($k, $v['value']); + if ($obj =& $handler->get($id)) { + foreach ($obj->vars as $k => $v) { + $this->assignVar($k, $v['value']); + } } }