diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-08-05 00:26:36 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-08-05 00:26:36 +0000 |
commit | cd430165d706c6a747f81e663f756e60a4a0377f (patch) | |
tree | 88915ae0fe216462d071760a005489e9838fff77 /modules/aggregator | |
parent | 6839ce965fb7ac37bf735a0b169009cca7529429 (diff) | |
download | brdo-cd430165d706c6a747f81e663f756e60a4a0377f.tar.gz brdo-cd430165d706c6a747f81e663f756e60a4a0377f.tar.bz2 |
#73884 by RobRoy, various code cleanup.
Diffstat (limited to 'modules/aggregator')
-rw-r--r-- | modules/aggregator/aggregator.module | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index 4551e0416..4a7d42152 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -833,6 +833,8 @@ function aggregator_parse_feed(&$data, $feed) { $items = array_reverse($items); + // Initialize variables + $title = $link = $author = $description = $guid = NULL; foreach ($items as $item) { unset($title, $link, $author, $description, $guid); @@ -1057,6 +1059,7 @@ function _aggregator_page_list($sql, $op, $header = '') { $result = pager_query($sql, 20); $categories = array(); + $done = FALSE; while ($item = db_fetch_object($result)) { $form['items'][$item->iid] = array('#value' => theme('aggregator_page_item', $item)); $output .= $form['items'][$item->iid]['#value']; |