missing single quote in query

This commit is contained in:
Mario Vavti 2017-01-26 14:50:52 +01:00
parent 54826808cf
commit f7f39cf6c0

View File

@ -103,7 +103,7 @@ class NativeWiki {
static public function sync_a_wiki_item($uid,$id,$resource_id) {
$r = q("SELECT * from item WHERE uid = %d AND ( id = %d OR ( resource_type = '%s and resource_id = %d )) ",
$r = q("SELECT * from item WHERE uid = %d AND ( id = %d OR ( resource_type = '%s' and resource_id = %d )) ",
intval($uid),
intval($id),
dbesc(NWIKI_ITEM_RESOURCE_TYPE),