issues from hubzilla:#737

This commit is contained in:
zotlabs
2017-04-26 19:47:05 -07:00
parent b88be137ca
commit 6fcfab3488
4 changed files with 18 additions and 7 deletions

View File

@@ -101,11 +101,11 @@ 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 = '%s' )) ",
intval($uid),
intval($id),
dbesc(NWIKI_ITEM_RESOURCE_TYPE),
intval($resource_id)
dbesc($resource_id)
);
if($r) {
xchan_query($r);