From 4eb40528a9d615b9498c64b4a308596ba632119a Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 20 May 2018 14:07:30 +0200 Subject: local_channel() is not string --- Zotlabs/Module/Settings/Oauth2.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Zotlabs/Module/Settings') 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 +} -- cgit v1.2.3