trim result

pull/78/head
friendica 2012-09-24 12:24:46 -07:00
parent 6c1a20968c
commit 1ea5df563f
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View 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;
}