Fix code style
This commit is contained in:
parent
eaf7801778
commit
0fc11d803c
@ -26,9 +26,11 @@ $server->register('feed.list', function () {
|
|||||||
}
|
}
|
||||||
$groups = Model\Group\get_feeds_map();
|
$groups = Model\Group\get_feeds_map();
|
||||||
foreach ($feeds as &$feed) {
|
foreach ($feeds as &$feed) {
|
||||||
$feed['feed_group_ids'] = isset($groups[$feed['id']])
|
$feed_id = $feed['id'];
|
||||||
? $groups[$feed['id']]
|
$feed['feed_group_ids'] = array();
|
||||||
: array();
|
if (isset($groups[$feed_id])) {
|
||||||
|
$feed['feed_group_ids'] = $groups[$feed_id];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $feeds;
|
return $feeds;
|
||||||
|
Loading…
Reference in New Issue
Block a user