From 24d903638b0dcec4f9d30135ec861da07db9d8fd Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 16 Dec 2002 21:38:58 +0000 Subject: [PATCH] - Fixed warning in import module. Reported by Pete. --- modules/aggregator.module | 8 ++++++-- modules/aggregator/aggregator.module | 8 ++++++-- modules/import.module | 8 ++++++-- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/modules/aggregator.module b/modules/aggregator.module index 7c147a10a95..78fbe5c679a 100644 --- a/modules/aggregator.module +++ b/modules/aggregator.module @@ -125,8 +125,10 @@ function import_block($op, $delta) { } function import_get_bundles($attributes = 0) { - $result = db_query("SELECT * FROM bundle ORDER BY title"); + $block = array(); + + $result = db_query("SELECT * FROM bundle ORDER BY title"); while ($bundle = db_fetch_object($result)) { $block[$bundle->bid]["subject"] = $bundle->title; $block[$bundle->bid]["content"] = import_bundle_block($bundle->attributes) ."

". lm(t("more"), array("mod" => "import", "op" => "bundle", "id" => $bundle->bid), "", array("title" => t("View this bundle's recent news."))) ."

"; @@ -137,8 +139,10 @@ function import_get_bundles($attributes = 0) { } function import_get_feeds($attributes = 0) { - $result = db_query("SELECT * FROM feed ORDER BY fid"); + $block = array(); + + $result = db_query("SELECT * FROM feed ORDER BY fid"); while ($feed = db_fetch_object($result)) { $block[$feed->fid]["subject"] = $feed->title; $block[$feed->fid]["content"] = import_feed_block($feed) ."

". lm(t("more"), array("mod" => "import", "op" => "feed", "id" => $feed->fid), "", array("title" => t("View this feed's recent news."))) ."

"; diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index 7c147a10a95..78fbe5c679a 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -125,8 +125,10 @@ function import_block($op, $delta) { } function import_get_bundles($attributes = 0) { - $result = db_query("SELECT * FROM bundle ORDER BY title"); + $block = array(); + + $result = db_query("SELECT * FROM bundle ORDER BY title"); while ($bundle = db_fetch_object($result)) { $block[$bundle->bid]["subject"] = $bundle->title; $block[$bundle->bid]["content"] = import_bundle_block($bundle->attributes) ."

". lm(t("more"), array("mod" => "import", "op" => "bundle", "id" => $bundle->bid), "", array("title" => t("View this bundle's recent news."))) ."

"; @@ -137,8 +139,10 @@ function import_get_bundles($attributes = 0) { } function import_get_feeds($attributes = 0) { - $result = db_query("SELECT * FROM feed ORDER BY fid"); + $block = array(); + + $result = db_query("SELECT * FROM feed ORDER BY fid"); while ($feed = db_fetch_object($result)) { $block[$feed->fid]["subject"] = $feed->title; $block[$feed->fid]["content"] = import_feed_block($feed) ."

". lm(t("more"), array("mod" => "import", "op" => "feed", "id" => $feed->fid), "", array("title" => t("View this feed's recent news."))) ."

"; diff --git a/modules/import.module b/modules/import.module index 7c147a10a95..78fbe5c679a 100644 --- a/modules/import.module +++ b/modules/import.module @@ -125,8 +125,10 @@ function import_block($op, $delta) { } function import_get_bundles($attributes = 0) { - $result = db_query("SELECT * FROM bundle ORDER BY title"); + $block = array(); + + $result = db_query("SELECT * FROM bundle ORDER BY title"); while ($bundle = db_fetch_object($result)) { $block[$bundle->bid]["subject"] = $bundle->title; $block[$bundle->bid]["content"] = import_bundle_block($bundle->attributes) ."

". lm(t("more"), array("mod" => "import", "op" => "bundle", "id" => $bundle->bid), "", array("title" => t("View this bundle's recent news."))) ."

"; @@ -137,8 +139,10 @@ function import_get_bundles($attributes = 0) { } function import_get_feeds($attributes = 0) { - $result = db_query("SELECT * FROM feed ORDER BY fid"); + $block = array(); + + $result = db_query("SELECT * FROM feed ORDER BY fid"); while ($feed = db_fetch_object($result)) { $block[$feed->fid]["subject"] = $feed->title; $block[$feed->fid]["content"] = import_feed_block($feed) ."

". lm(t("more"), array("mod" => "import", "op" => "feed", "id" => $feed->fid), "", array("title" => t("View this feed's recent news."))) ."

";