• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-jp-ancient: Commit

Nucleus CMS日本語版SVNをgit-svnしたもの。リポジトリの変換作業用


Commit MetaInfo

Revisãod1afe88535b2eeb6beed6ec70b969d5e3961fb98 (tree)
Hora2011-03-31 22:35:26
Autorsakamocchi <sakamocchi@1ca2...>
Commitersakamocchi

Mensagem de Log

The variable for 'defined' function need to be packed with quotation.

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@1198 1ca29b6e-896d-4ea0-84a5-967f57386b96

Mudança Sumário

Diff

--- a/utf8/nucleus/libs/sql/mysql.php
+++ b/utf8/nucleus/libs/sql/mysql.php
@@ -72,7 +72,7 @@ if (function_exists('mysql_query') && !function_exists('sql_fetch_assoc'))
7272 mysql_select_db($MYSQL_DATABASE) or startUpError('<p>Could not select database: ' . mysql_error() . '</p>', 'Connect Error');
7373
7474 // <add for garble measure>
75- if (defined(_CHARSET)){
75+ if (defined('_CHARSET')){
7676 $charset = _CHARSET;
7777 }else{
7878 $resource = sql_query("show variables LIKE 'character_set_database'");
--- a/utf8/nucleus/libs/sql/pdo.php
+++ b/utf8/nucleus/libs/sql/pdo.php
@@ -194,7 +194,7 @@ if (!function_exists('sql_fetch_assoc'))
194194
195195 // <add for garble measure>
196196 if (strpos($MYSQL_HANDLER[1], 'mysql') === 0) {
197- if (defined(_CHARSET)){
197+ if (defined('_CHARSET')){
198198 $charset = _CHARSET;
199199 }else{
200200 $resource = $SQL_DBH->query("show variables LIKE 'character_set_database'");
Show on old repository browser