aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-05-20 14:07:30 +0200
committerMario Vavti <mario@mariovavti.com>2018-05-20 14:07:30 +0200
commit4eb40528a9d615b9498c64b4a308596ba632119a (patch)
treebaf7c38ef5e457ed4ace3c312c6947dba020e8c9 /Zotlabs
parent6ba77ce0e282659f9616f6cdaf85f5fbcb9776bb (diff)
downloadvolse-hubzilla-4eb40528a9d615b9498c64b4a308596ba632119a.tar.gz
volse-hubzilla-4eb40528a9d615b9498c64b4a308596ba632119a.tar.bz2
volse-hubzilla-4eb40528a9d615b9498c64b4a308596ba632119a.zip
local_channel() is not string
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Settings/Oauth2.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Settings/Oauth2.php b/Zotlabs/Module/Settings/Oauth2.php
index 88bbea3b8..66eb95f81 100644
--- a/Zotlabs/Module/Settings/Oauth2.php
+++ b/Zotlabs/Module/Settings/Oauth2.php
@@ -132,10 +132,10 @@ class Oauth2 {
}
- $r = q("SELECT oauth_clients.*, oauth_access_tokens.access_token as oauth_token, (oauth_clients.user_id = '%s') AS my
+ $r = q("SELECT oauth_clients.*, oauth_access_tokens.access_token as oauth_token, (oauth_clients.user_id = %d) AS my
FROM oauth_clients
LEFT JOIN oauth_access_tokens ON oauth_clients.client_id=oauth_access_tokens.client_id
- WHERE oauth_clients.user_id IN ('%s',0)",
+ WHERE oauth_clients.user_id IN (%d,0)",
dbesc(local_channel()),
dbesc(local_channel())
);
@@ -157,4 +157,4 @@ class Oauth2 {
}
-} \ No newline at end of file
+}