Minahito
minah****@users*****
2007年 4月 25日 (水) 17:44:06 JST
Index: xoops2jp/html/include/functions.php diff -u xoops2jp/html/include/functions.php:1.2.8.19.2.10 xoops2jp/html/include/functions.php:1.2.8.19.2.10.2.1 --- xoops2jp/html/include/functions.php:1.2.8.19.2.10 Wed Nov 22 20:31:43 2006 +++ xoops2jp/html/include/functions.php Wed Apr 25 17:44:06 2007 @@ -1,5 +1,5 @@ <?php -// $Id: functions.php,v 1.2.8.19.2.10 2006/11/22 11:31:43 minahito Exp $ +// $Id: functions.php,v 1.2.8.19.2.10.2.1 2007/04/25 08:44:06 minahito Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -618,13 +618,13 @@ $myts =& MyTextSanitizer::getInstance(); $rank_id = intval($rank_id); if ($rank_id != 0) { - $sql = "SELECT rank_title AS title, rank_image AS image FROM ".$db->prefix('ranks')." WHERE rank_id = ".$rank_id; + $sql = "SELECT rank_title AS title, rank_image AS image, rank_id AS id FROM ".$db->prefix('ranks')." WHERE rank_id = ".$rank_id; } else { - $sql = "SELECT rank_title AS title, rank_image AS image FROM ".$db->prefix('ranks')." WHERE rank_min <= ".$posts." AND rank_max >= ".$posts." AND rank_special = 0"; + $sql = "SELECT rank_title AS title, rank_image AS image, rank_id AS id FROM ".$db->prefix('ranks')." WHERE rank_min <= ".$posts." AND rank_max >= ".$posts." AND rank_special = 0"; } $rank = $db->fetchArray($db->query($sql)); $rank['title'] = $myts->makeTboxData4Show($rank['title']); - $rank['id'] = $rank_id; + return $rank; }