diff options
author | Mario <mario@mariovavti.com> | 2018-05-20 22:42:47 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-05-20 22:42:47 +0200 |
commit | 469809183d232761b8984848c133f9f11f5e7cea (patch) | |
tree | 5d072666809f6087bd5dc37e5939fed3305e031e /Zotlabs/Module/Settings/Oauth2.php | |
parent | 55e1026c986f1c2c7e2a0376579b01111a93ab5d (diff) | |
download | volse-hubzilla-469809183d232761b8984848c133f9f11f5e7cea.tar.gz volse-hubzilla-469809183d232761b8984848c133f9f11f5e7cea.tar.bz2 volse-hubzilla-469809183d232761b8984848c133f9f11f5e7cea.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.php | 3 |
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; } |