diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-05-20 14:07:30 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-05-20 22:54:36 +0200 |
commit | f091a3c9fc7b6bd8db70ec86b839d8e8554e9f0c (patch) | |
tree | 65d41cdda537c03f09c086925ef28c254420d4ad /Zotlabs/Module | |
parent | 18338495afcdb913a5d18782c3e9860bd9b9451c (diff) | |
download | volse-hubzilla-f091a3c9fc7b6bd8db70ec86b839d8e8554e9f0c.tar.gz volse-hubzilla-f091a3c9fc7b6bd8db70ec86b839d8e8554e9f0c.tar.bz2 volse-hubzilla-f091a3c9fc7b6bd8db70ec86b839d8e8554e9f0c.zip |
local_channel() is not string
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Settings/Oauth2.php | 6 |
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 +} |