OSDN Git Service

FIX: 前回のコミットの微修正
authorsakamocchi <o-takashi@sakamocchi.jp>
Tue, 1 May 2012 12:32:49 +0000 (21:32 +0900)
committersakamocchi <o-takashi@sakamocchi.jp>
Tue, 1 May 2012 12:32:49 +0000 (21:32 +0900)
PDO::quote()は引用符付きの文字列を返すため、フォーマット文字列に引用符は不要だった。

nucleus/libs/SKIN.php

index d27963f..b82a1f4 100644 (file)
@@ -387,7 +387,7 @@ class Skin
         */
        public function getContentFromDB($skintype)
        {
-               $query = "SELECT scontent FROM %s WHERE sdesc=%d and stype='%s';";
+               $query = "SELECT scontent FROM %s WHERE sdesc=%d and stype=%s;";
                $query = sprintf($query, sql_table('skin'), (integer) $this->id, DB::quoteValue($skintype));
                $res = DB::getValue($query);