Permalink
Browse files

check for id element if no link is set

  • Loading branch information...
1 parent 5309d8c commit c6d3d4344b578edd4dc1a9e5e9933ae8de4d4d11 @chregu committed Feb 27, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 libs/aggregator.php
View
@@ -109,7 +109,9 @@ function aggregateAllBlogs($id = null) {
if (!isset($item['link']) && isset($item['link_'])) {
$item['link'] = $item['link_'];
}
-
+ if (!isset($item['link']) && isset($item['id'])) {
+ $item['link'] = $item['id'];
+ }
if (!isset($item['content']['encoded']) && isset($item['atom_content'])) {
$item['content']['encoded'] = $item['atom_content'];
}

0 comments on commit c6d3d43

Please sign in to comment.