Fix WSOD twitter

This commit is contained in:
Steffen K9 2021-11-07 16:19:53 +01:00 committed by GitHub
parent 2ac5662ab2
commit c57c1de3d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -791,7 +791,7 @@ function twitter_post_hook(App $a, array &$b)
function twitter_addon_admin_post(App $a)
{
$consumerkey = trim($_POST['consumerkey'] ?? : '');
$consumerkey = trim($_POST['consumerkey'] ?? '');
$consumersecret = trim($_POST['consumersecret'] ?? '');
DI::config()->set('twitter', 'consumerkey', $consumerkey);
DI::config()->set('twitter', 'consumersecret', $consumersecret);