From 1a76c3ec0f950ffa2b705d7a54c4c93669aa7458 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Mon, 8 Mar 2021 06:37:09 +0100 Subject: [PATCH] prevent php warning --- nitter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nitter.php b/nitter.php index 77185cb..f5a1eb6 100644 --- a/nitter.php +++ b/nitter.php @@ -36,8 +36,8 @@ function nitter_install() { function nitter_render(&$a, &$o) { // this needs to be a system setting $nitter = 'https://nitter.net'; - if (strstr($o[html],'https://twitter.com')) { - $o['html'] = str_replace('https://twitter.com', $nitter, $o[html]); + if (strstr($o['html'],'https://twitter.com')) { + $o['html'] = str_replace('https://twitter.com', $nitter, $o['html']); $o['html'] .= '

'.DI::l10n()->t('Links to Twitter in this posting were replaced by links to the Nitter instance at %s', $nitter).'

'; } }