Fix code style

This commit is contained in:
denfil 2015-12-25 10:17:49 +03:00
parent eaf7801778
commit 0fc11d803c

View File

@ -26,9 +26,11 @@ $server->register('feed.list', function () {
}
$groups = Model\Group\get_feeds_map();
foreach ($feeds as &$feed) {
$feed['feed_group_ids'] = isset($groups[$feed['id']])
? $groups[$feed['id']]
: array();
$feed_id = $feed['id'];
$feed['feed_group_ids'] = array();
if (isset($groups[$feed_id])) {
$feed['feed_group_ids'] = $groups[$feed_id];
}
}
return $feeds;