diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-10-26 21:50:42 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-10-26 21:50:42 +0000 |
commit | c3ede753cfb9688a433969f976c5516d6c55c585 (patch) | |
tree | 7d2d0d0c6705f61821011c9c07c9cfbefb614ca1 /modules | |
parent | 48fd8bfade5e3796d25268862a9cf4708f0cbc7a (diff) | |
download | brdo-c3ede753cfb9688a433969f976c5516d6c55c585.tar.gz brdo-c3ede753cfb9688a433969f976c5516d6c55c585.tar.bz2 |
- Properly initialized $contents and removed dead code. Patch/suggestion by ax.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/admin.module | 8 |
1 files changed, 5 insertions, 3 deletions
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 = "<small>$help</small><hr />"; + $contents .= "<small>$help</small><hr />"; } + 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(); |