aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Settings/Oauth2.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-05-20 22:42:47 +0200
committerMario Vavti <mario@mariovavti.com>2018-05-20 22:55:13 +0200
commit5b48eb3657a7cf6593b4c1f6ee17bf32eaa402af (patch)
tree5d8e11cb193526cbc4c165d9b5fce12ab26bc1db /Zotlabs/Module/Settings/Oauth2.php
parent43f04e4bc0b041a4e6450f6aad3e9045fb5eb3cf (diff)
downloadvolse-hubzilla-5b48eb3657a7cf6593b4c1f6ee17bf32eaa402af.tar.gz
volse-hubzilla-5b48eb3657a7cf6593b4c1f6ee17bf32eaa402af.tar.bz2
volse-hubzilla-5b48eb3657a7cf6593b4c1f6ee17bf32eaa402af.zip
update oauth related tables to use bigint/int(10) for user_id column. this is to be more consistent with the rest of the tables and fixes issue #1180
Diffstat (limited to 'Zotlabs/Module/Settings/Oauth2.php')
-rw-r--r--Zotlabs/Module/Settings/Oauth2.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Settings/Oauth2.php b/Zotlabs/Module/Settings/Oauth2.php
index 8db5c14aa..985095115 100644
--- a/Zotlabs/Module/Settings/Oauth2.php
+++ b/Zotlabs/Module/Settings/Oauth2.php
@@ -14,7 +14,8 @@ class Oauth2 {
$key = $_POST['remove'];
q("DELETE FROM tokens WHERE id='%s' AND uid=%d",
dbesc($key),
- local_channel());
+ intval(local_channel())
+ );
goaway(z_root()."/settings/oauth2/");
return;
}