diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-04-21 14:55:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-04-21 14:55:03 +0000 |
commit | a956de78b9681f55cfc81785306031aa6e3ac9c1 (patch) | |
tree | feae400f1ae2191fb3253f527be4cc2d01728a62 /modules/aggregator/aggregator.module | |
parent | 716e833a6e103585d1d1478b6a4ee47a1e8bbbef (diff) | |
download | brdo-a956de78b9681f55cfc81785306031aa6e3ac9c1.tar.gz brdo-a956de78b9681f55cfc81785306031aa6e3ac9c1.tar.bz2 |
- Fixed some PHP "notices".
Diffstat (limited to 'modules/aggregator/aggregator.module')
-rw-r--r-- | modules/aggregator/aggregator.module | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index a36ef3215..dcf3d2d49 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -30,6 +30,8 @@ function import_perm() { function import_link($type) { + $links = array(); + if ($type == "page" && user_access("access news feeds")) { $links[] = l(t("news feeds"), "import", array("title" => t("Read the latest news from syndicated websites."))); } @@ -45,7 +47,7 @@ function import_link($type) { menu("admin/syndication/news/help", "help", "import_help", NULL, 9); } - return $links ? $links : array(); + return $links; } function import_cron() { |