Standards

This commit is contained in:
Michael 2021-06-08 07:35:36 +00:00
parent ca5e0eaaea
commit 4b280a7279

View file

@ -120,9 +120,7 @@ class OAuth
return [];
}
$bearer = trim(substr($authorization, 7));
$condition = ['access_token' => $bearer];
$condition = ['access_token' => trim(substr($authorization, 7))];
$token = DBA::selectFirst('application-view', ['uid', 'id', 'name', 'website', 'created_at', 'read', 'write', 'follow', 'push'], $condition);
if (!DBA::isResult($token)) {