]> git.mxchange.org Git - friendica-addons.git/commitdiff
trim result
authorfriendica <info@friendica.com>
Mon, 24 Sep 2012 19:24:46 +0000 (12:24 -0700)
committerfriendica <info@friendica.com>
Mon, 24 Sep 2012 19:24:46 +0000 (12:24 -0700)
fromapp.tgz
fromapp/fromapp.php

index 7cab4fda23644c1f8ad3323b198750b2fdb141ff..dbe45ebe0578d594bbd4cd34e04a6eff39f02493 100644 (file)
Binary files a/fromapp.tgz and b/fromapp.tgz differ
index 58eaa46938d78f81516e171f2cd0652921eb2ffe..51c959060ebe0d2e82b3cbc72840a1911e358582 100644 (file)
@@ -78,7 +78,8 @@ function fromapp_post_hook(&$a,&$item) {
     if(($app === false) || (! strlen($app)))
         return;
 
-       $item['app'] = $app;
+       $apps = explode(',',$app);
+       $item['app'] = trim($apps[mt_rand(0,count($apps)-1)]);
        return;
 
 }
\ No newline at end of file