aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/NativeWiki.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-04-26 19:47:05 -0700
committerMario Vavti <mario@mariovavti.com>2017-04-27 14:33:01 +0200
commit2778e63d6c51b5ca77d9a309ddb7390b239fa491 (patch)
tree1813c5dd6d98c211dfcc734da902c45b6dee74fc /Zotlabs/Lib/NativeWiki.php
parentd16fbda0f8c97b504c20cbcfbd07031ef0fa62fe (diff)
downloadvolse-hubzilla-2778e63d6c51b5ca77d9a309ddb7390b239fa491.tar.gz
volse-hubzilla-2778e63d6c51b5ca77d9a309ddb7390b239fa491.tar.bz2
volse-hubzilla-2778e63d6c51b5ca77d9a309ddb7390b239fa491.zip
issues from hubzilla:#737
Diffstat (limited to 'Zotlabs/Lib/NativeWiki.php')
-rw-r--r--Zotlabs/Lib/NativeWiki.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/NativeWiki.php b/Zotlabs/Lib/NativeWiki.php
index 7786ec25a..4301feaa0 100644
--- a/Zotlabs/Lib/NativeWiki.php
+++ b/Zotlabs/Lib/NativeWiki.php
@@ -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);