From e2c7578734d58321c6c5b00de8cd52a00067bceb Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 21 Sep 2019 14:53:54 +0000 Subject: [PATCH] Fix notice in Twitter addon --- twitter/twitter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index 176cb22b..a43e8358 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -630,7 +630,7 @@ function twitter_post_hook(App $a, array &$b) $msg = Plaintext::shorten($msgarr["title"], $max_char - 50); } - if (($msgarr['url'] == $b['plink']) && !empty($msgarr['images']) && (count($msgarr['images']) <= 4)) { + if (!empty($msgarr['url']) && ($msgarr['url'] == $b['plink']) && !empty($msgarr['images']) && (count($msgarr['images']) <= 4)) { $url_added = false; } elseif (isset($msgarr["url"]) && ($msgarr["type"] != "photo")) { $msg .= "\n" . $msgarr["url"]; -- 2.39.5