Minahito
minah****@users*****
2006年 1月 2日 (月) 21:39:33 JST
Index: xoops2jp/html/class/database/mysqldatabase.php diff -u xoops2jp/html/class/database/mysqldatabase.php:1.2.8.2 xoops2jp/html/class/database/mysqldatabase.php:1.2.8.3 --- xoops2jp/html/class/database/mysqldatabase.php:1.2.8.2 Tue Dec 27 00:48:29 2005 +++ xoops2jp/html/class/database/mysqldatabase.php Mon Jan 2 21:39:33 2006 @@ -1,5 +1,5 @@ <?php -// $Id: mysqldatabase.php,v 1.2.8.2 2005/12/26 15:48:29 minahito Exp $ +// $Id: mysqldatabase.php,v 1.2.8.3 2006/01/02 12:39:33 minahito Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -239,7 +239,7 @@ } $sql = $sql. ' LIMIT '.(int)$start.', '.(int)$limit; } - $result =& mysql_query($sql, $this->conn); + $result = mysql_query($sql, $this->conn); if ( $result ) { $this->logger->addQuery($sql); return $result; @@ -451,10 +451,13 @@ $sql = ltrim($sql); if (strtolower(substr($sql, 0, 6)) == 'select') { //if (preg_match("/^SELECT.*/i", $sql)) { - return $this->queryF($sql, $limit, $start); + $ret = $this->queryF($sql, $limit, $start); + return $ret; } $this->logger->addQuery($sql, 'Database update not allowed during processing of a GET request', 0); - return false; + + $ret = false; + return $ret; } } ?> \ No newline at end of file