diff --git a/twitter/twitter.php b/twitter/twitter.php index 9811a06ab..8b7451b82 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -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);