From c3ede753cfb9688a433969f976c5516d6c55c585 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 26 Oct 2003 21:50:42 +0000 Subject: - Properly initialized $contents and removed dead code. Patch/suggestion by ax. --- modules/admin.module | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/admin.module b/modules/admin.module index fffc6801c..37ab9832a 100644 --- a/modules/admin.module +++ b/modules/admin.module @@ -34,15 +34,17 @@ function admin_link($type) { function admin_page() { if (user_access("access administration pages")) { + $contents = ""; + if ($help = menu_get_active_help()) { - $contents = "$help
"; + $contents .= "$help
"; } + if (arg(1)) { $contents .= menu_execute_active_handler(); } else { - $contents.= watchdog_overview("actions"); - $title = t("System messages"); + $contents .= watchdog_overview("actions"); } $breadcrumb = menu_get_active_breadcrumb(); -- cgit v1.2.3