summaryrefslogtreecommitdiff
path: root/modules/aggregator
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-08-04 14:09:05 +0000
committerDries Buytaert <dries@buytaert.net>2001-08-04 14:09:05 +0000
commit405cc92a67baa81b103e4490b50fae708ec6b793 (patch)
treefe3e591ce2b5afd745c9224b8ccabd26d6a18667 /modules/aggregator
parent97fe958df9e66be1c08add741950d1b80267fc31 (diff)
downloadbrdo-405cc92a67baa81b103e4490b50fae708ec6b793.tar.gz
brdo-405cc92a67baa81b103e4490b50fae708ec6b793.tar.bz2
- bugfix: cured a warning
Diffstat (limited to 'modules/aggregator')
-rw-r--r--modules/aggregator/aggregator.module8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module
index 586a7d3c4..e80cd6547 100644
--- a/modules/aggregator/aggregator.module
+++ b/modules/aggregator/aggregator.module
@@ -341,7 +341,7 @@ function import_view() {
function import_fd_form() {
global $REQUEST_URI;
- $form .= form_textfield("Feed directory file", "url", "http://127.0.0.1/1.fd", 64, 128, "The fully-qualified URL of the feed directory file.");
+ $form .= form_textfield("Feed directory file", "url", "http://", 64, 128, "The fully-qualified URL of the feed directory file.");
$form .= form_submit("Collect feeds");
return form($REQUEST_URI, $form);
@@ -394,8 +394,10 @@ function import_fd_collect($edit) {
}
function import_fd_import($edit) {
- foreach ($edit as $title => $link) {
- import_save_feed(array("title" => $title, "url" => $link, "refresh" => 3600, "uncache" => 2419200));
+ if ($edit) {
+ foreach ($edit as $title => $link) {
+ import_save_feed(array("title" => $title, "url" => $link, "refresh" => 3600, "uncache" => 2419200));
+ }
}
}