mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-28 22:13:16 +00:00
trim result
This commit is contained in:
parent
6c1a20968c
commit
1ea5df563f
2 changed files with 2 additions and 1 deletions
BIN
fromapp.tgz
BIN
fromapp.tgz
Binary file not shown.
|
@ -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;
|
||||
|
||||
}
|
Loading…
Reference in a new issue