Minahito
minah****@users*****
2006年 11月 25日 (土) 19:12:32 JST
Index: xoops2jp/html/kernel/block.php diff -u xoops2jp/html/kernel/block.php:1.2.8.10.2.2 xoops2jp/html/kernel/block.php:1.2.8.10.2.3 --- xoops2jp/html/kernel/block.php:1.2.8.10.2.2 Sat Nov 25 19:11:02 2006 +++ xoops2jp/html/kernel/block.php Sat Nov 25 19:12:31 2006 @@ -1,5 +1,5 @@ <?php -// $Id: block.php,v 1.2.8.10.2.2 2006/11/25 10:11:02 minahito Exp $ +// $Id: block.php,v 1.2.8.10.2.3 2006/11/25 10:12:31 minahito Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -408,7 +408,8 @@ if ($id > 0) { $sql = 'SELECT * FROM '.$this->db->prefix('newblocks').' WHERE bid='.$id; if (!$result = $this->db->query($sql)) { - return false; + $ret = false; //< You may think this should be null. But this is the compatibility with X2. + return $ret; } $numrows = $this->db->getRowsNum($result); if ($numrows == 1) {