diff options
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r-- | Zotlabs/Lib/NativeWiki.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Zotlabs/Lib/NativeWiki.php b/Zotlabs/Lib/NativeWiki.php index f4089d8a2..3dc914772 100644 --- a/Zotlabs/Lib/NativeWiki.php +++ b/Zotlabs/Lib/NativeWiki.php @@ -100,10 +100,14 @@ class NativeWiki { } } - static public function sync_a_wiki_item($uid,$id) { - $r = q("select * from item where id = %d and uid = %d", + 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 )) ", + intval($uid), intval($id), - intval($uid) + dbesc(NWIKI_ITEM_RESOURCE_TYPE) + intval($resource_id) ); if($r) { xchan_query($r); |