diff --git a/core/modules/aggregator/aggregator.admin.inc b/core/modules/aggregator/aggregator.admin.inc index 0763342..e3eedbc 100644 --- a/core/modules/aggregator/aggregator.admin.inc +++ b/core/modules/aggregator/aggregator.admin.inc @@ -70,28 +70,26 @@ function aggregator_view() { $categories = entity_load_multiple_by_properties('taxonomy_term', array('vid' => 'aggregator_categories')); $rows = array(); - if ($categories) { - foreach ($categories as $category) { - $row = array(); - $items = entity_query('aggregator_item') - ->condition('field_aggregator_categories.target_id', $category->id()) - ->execute(); - $row[] = l($category->label(), 'aggregator/categories/' . $category->id()); - $row[] = format_plural(count($items), '1 item', '@count items'); - $links = array(); - $links['edit'] = array( - 'title' => t('Edit'), - 'href' => 'taxonomy/term/' . $category->id() . '/edit', - 'query' => drupal_get_destination(), - ); - $row[] = array( - 'data' => array( - '#type' => 'operations', - '#links' => $links, - ), - ); - $rows[] = $row; - } + foreach ($categories as $category) { + $row = array(); + $items = entity_query('aggregator_item') + ->condition('field_aggregator_categories.target_id', $category->id()) + ->execute(); + $row[] = l($category->label(), 'aggregator/categories/' . $category->id()); + $row[] = format_plural(count($items), '1 item', '@count items'); + $links = array(); + $links['edit'] = array( + 'title' => t('Edit'), + 'href' => 'taxonomy/term/' . $category->id() . '/edit', + 'query' => drupal_get_destination(), + ); + $row[] = array( + 'data' => array( + '#type' => 'operations', + '#links' => $links, + ), + ); + $rows[] = $row; } $output .= '