From: friendica Date: Mon, 24 Sep 2012 19:24:46 +0000 (-0700) Subject: trim result X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1ea5df563ffaa152a4fb9dfb196b907b0cc59085;p=friendica-addons.git trim result --- diff --git a/fromapp.tgz b/fromapp.tgz index 7cab4fda..dbe45ebe 100644 Binary files a/fromapp.tgz and b/fromapp.tgz differ diff --git a/fromapp/fromapp.php b/fromapp/fromapp.php index 58eaa469..51c95906 100644 --- a/fromapp/fromapp.php +++ b/fromapp/fromapp.php @@ -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