X-Git-Url: http://git.sourceforge.jp/view?p=nucleus-jp%2Fnucleus-jp-ancient.git;a=blobdiff_plain;f=utf8%2Fnucleus%2Flibs%2FITEM.php;h=139484d839a3967ba7d7f5388e48ba6cc41fbc77;hp=7d25d633b8b2f70b7cbbe829984e0bc0b57f4427;hb=de2c88605216c60de0551669ceec82e91067e02d;hpb=13827291f82dcbcbaf3815d98056ab525f8702c1;ds=sidebyside diff --git a/utf8/nucleus/libs/ITEM.php b/utf8/nucleus/libs/ITEM.php index 7d25d63..139484d 100755 --- a/utf8/nucleus/libs/ITEM.php +++ b/utf8/nucleus/libs/ITEM.php @@ -2,7 +2,7 @@ /* * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/) - * Copyright (C) 2002-2009 The Nucleus Group + * Copyright (C) 2002-2010 The Nucleus Group * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -14,7 +14,7 @@ * A class representing an item * * @license http://nucleuscms.org/license.txt GNU General Public License - * @copyright Copyright (C) 2002-2009 The Nucleus Group + * @copyright Copyright (C) 2002-2010 The Nucleus Group * @version $Id$ * $NucleusJP: ITEM.php,v 1.7.2.3 2008/02/07 06:13:30 kimitake Exp $ */ @@ -65,9 +65,9 @@ class ITEM { $res = sql_query($query); - if (mysql_num_rows($res) == 1) + if (sql_num_rows($res) == 1) { - $aItemInfo = mysql_fetch_assoc($res); + $aItemInfo = sql_fetch_assoc($res); $aItemInfo['timestamp'] = strtotime($aItemInfo['itime']); return $aItemInfo; } else { @@ -373,7 +373,7 @@ class ITEM { } $r = sql_query($r); - return (mysql_num_rows($r) != 0); + return (sql_num_rows($r) != 0); } /** @@ -395,7 +395,7 @@ class ITEM { $i_title = postVar('title'); $i_more = postVar('more'); - if(_CHARSET != 'UTF-8'){ + if(strtoupper(_CHARSET) != 'UTF-8'){ $i_body = mb_convert_encoding($i_body, _CHARSET, "UTF-8"); $i_title = mb_convert_encoding($i_title, _CHARSET, "UTF-8"); $i_more = mb_convert_encoding($i_more, _CHARSET, "UTF-8");