OSDN Git Service

The variable for 'defined' function need to be packed with quotation.
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / libs / sql / pdo.php
index 9f6f61b..1ac7524 100755 (executable)
@@ -194,7 +194,7 @@ if (!function_exists('sql_fetch_assoc'))
                        
 // <add for garble measure>
                        if (strpos($MYSQL_HANDLER[1], 'mysql') === 0) {
-                               if (defined(_CHARSET)){
+                               if (defined('_CHARSET')){
                                        $charset  = _CHARSET;
                                }else{
                                        $resource = $SQL_DBH->query("show variables LIKE 'character_set_database'");