Nucleus CMS日本語版SVNをgit-svnしたもの。リポジトリの変換作業用
Revision | d1afe88535b2eeb6beed6ec70b969d5e3961fb98 (tree) |
---|---|
Time | 2011-03-31 22:35:26 |
Author | sakamocchi <sakamocchi@1ca2...> |
Commiter | sakamocchi |
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
@@ -72,7 +72,7 @@ if (function_exists('mysql_query') && !function_exists('sql_fetch_assoc')) | ||
72 | 72 | mysql_select_db($MYSQL_DATABASE) or startUpError('<p>Could not select database: ' . mysql_error() . '</p>', 'Connect Error'); |
73 | 73 | |
74 | 74 | // <add for garble measure> |
75 | - if (defined(_CHARSET)){ | |
75 | + if (defined('_CHARSET')){ | |
76 | 76 | $charset = _CHARSET; |
77 | 77 | }else{ |
78 | 78 | $resource = sql_query("show variables LIKE 'character_set_database'"); |
@@ -194,7 +194,7 @@ if (!function_exists('sql_fetch_assoc')) | ||
194 | 194 | |
195 | 195 | // <add for garble measure> |
196 | 196 | if (strpos($MYSQL_HANDLER[1], 'mysql') === 0) { |
197 | - if (defined(_CHARSET)){ | |
197 | + if (defined('_CHARSET')){ | |
198 | 198 | $charset = _CHARSET; |
199 | 199 | }else{ |
200 | 200 | $resource = $SQL_DBH->query("show variables LIKE 'character_set_database'"); |