aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/NativeWiki.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-01-26 14:50:52 +0100
committerMario Vavti <mario@mariovavti.com>2017-01-26 14:50:52 +0100
commitf7f39cf6c00d914efb1f2624d7a885ac912512e9 (patch)
tree23eb3a89d6c64da3a92bc249ef7d0830fc81608c /Zotlabs/Lib/NativeWiki.php
parent54826808cf8d2ee7fdf80d6be1283fca47ec1c35 (diff)
downloadvolse-hubzilla-f7f39cf6c00d914efb1f2624d7a885ac912512e9.tar.gz
volse-hubzilla-f7f39cf6c00d914efb1f2624d7a885ac912512e9.tar.bz2
volse-hubzilla-f7f39cf6c00d914efb1f2624d7a885ac912512e9.zip
missing single quote in query
Diffstat (limited to 'Zotlabs/Lib/NativeWiki.php')
-rw-r--r--Zotlabs/Lib/NativeWiki.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/NativeWiki.php b/Zotlabs/Lib/NativeWiki.php
index 469639c14..1b7970c4e 100644
--- a/Zotlabs/Lib/NativeWiki.php
+++ b/Zotlabs/Lib/NativeWiki.php
@@ -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),