From 600b5ce7912bedca14dc1dae7c382e9fbd463f55 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 4 Aug 2013 08:24:32 +0200 Subject: [PATCH] Twitter: fix problem sending tweets in normal mode --- twitter/twitter.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index bd9eb18c..7dd083ea 100755 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -622,11 +622,12 @@ function twitter_post_hook(&$a,&$b) { } $msg = trim($msg); - } else + $image = ""; + } else { $msgarr = twitter_shortenmsg($b); $msg = $msgarr["msg"]; $image = $msgarr["image"]; - + } // and now tweet it :-) if(strlen($msg) and ($image != "")) { $img_str = fetch_url($image);