]> git.mxchange.org Git - friendica-addons.git/commitdiff
Twitter: fix problem sending tweets in normal mode
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 4 Aug 2013 06:24:32 +0000 (08:24 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 4 Aug 2013 06:24:32 +0000 (08:24 +0200)
twitter/twitter.php

index bd9eb18c32acac196bbb1deb94fc6e6c791744e7..7dd083eaafc910364109bbc57978efdb0b56123c 100755 (executable)
@@ -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);