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

This commit is contained in:
Mario
2018-05-20 22:42:47 +02:00
parent 55e1026c98
commit 469809183d
5 changed files with 68 additions and 10 deletions

View File

@@ -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;
}