]> git.mxchange.org Git - friendica-addons.git/blobdiff - fromapp/fromapp.php
trim result
[friendica-addons.git] / fromapp / fromapp.php
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