OSDN Git Service

FIX:DB::executeの戻り値の判定が正しく行えていない不具合の修正
[nucleus-jp/nucleus-next.git] / install / index.php
index 7dd02e4..d46380e 100644 (file)
@@ -939,7 +939,7 @@ function do_install()
                DB::quoteValue(_1ST_POST2),\r
                DB::formatDateTime(time())\r
        );\r
-       if ( !DB::execute($query) )\r
+       if ( DB::execute($query) === FALSE )\r
        {\r
                $errinfo = DB::getError();\r
                $errors[] = _INST_ERROR4 . ' (<small>' . $newpost . '</small>): ' . $errinfo[2];\r
@@ -966,7 +966,7 @@ function do_install()
                DB::quoteValue($param->user_email),\r
                DB::quoteValue($param->IndexURL)\r
        );\r
-       if ( !DB::execute($query) )\r
+       if ( DB::execute($query) === FALSE )\r
        {\r
                $errinfo = DB::getError();\r
                $errors[] = _INST_ERROR5 . ': ' . $errinfo[2];\r
@@ -980,7 +980,7 @@ function do_install()
                DB::quoteValue($param->blog_shortname),\r
                DB::quoteValue($param->IndexURL)\r
        );\r
-       if ( !DB::execute($query) )\r
+       if ( DB::execute($query) === FALSE )\r
        {\r
                $errinfo = DB::getError();\r
                $errors[] = _INST_ERROR6 . ': ' . $errinfo[2];\r
@@ -993,7 +993,7 @@ function do_install()
                DB::quoteValue(_GENERALCAT_NAME),\r
                DB::quoteValue(_GENERALCAT_DESC)\r
        );\r
-       if ( !DB::execute($query) )\r
+       if ( DB::execute($query) === FALSE )\r
        {\r
                $errinfo = DB::getError();\r
                $errors[] = _INST_ERROR6 . ': ' . $errinfo[2];\r
@@ -1383,7 +1383,7 @@ function updateConfig($name, $value)
        $query = "UPDATE %s SET value = %s WHERE name = %s";\r
        $query = sprintf($query, tableName('nucleus_config'), DB::quoteValue(trim($value)), DB::quoteValue($name));\r
 \r
-       if ( !DB::execute($query) )\r
+       if ( DB::execute($query) === FALSE )\r
        {\r
                $errinfo = DB::getError();\r
                $errors[] = _INST_ERROR4 . ': ' . $errinfo[2];\r