OSDN Git Service
(root)
/
nucleus-jp
/
nucleus-next.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53a745a
)
FIX: 前回のコミットの微修正
author
sakamocchi
<o-takashi@sakamocchi.jp>
Tue, 1 May 2012 12:32:49 +0000
(21:32 +0900)
committer
sakamocchi
<o-takashi@sakamocchi.jp>
Tue, 1 May 2012 12:32:49 +0000
(21:32 +0900)
PDO::quote()は引用符付きの文字列を返すため、フォーマット文字列に引用符は不要だった。
nucleus/libs/SKIN.php
patch
|
blob
|
history
diff --git
a/nucleus/libs/SKIN.php
b/nucleus/libs/SKIN.php
index
d27963f
..
b82a1f4
100644
(file)
--- a/
nucleus/libs/SKIN.php
+++ b/
nucleus/libs/SKIN.php
@@
-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);