diff --git a/mod/message.php b/mod/message.php index 2a64c2e051..0ed2b98841 100644 --- a/mod/message.php +++ b/mod/message.php @@ -7,8 +7,9 @@ function message_init(&$a) { $tabs = ''; - if (is_numeric($a->argv[1])) + if ($a->argc >1 && is_numeric($a->argv[1])) { $tabs = render_messages(get_messages(local_user(),0,5), 'mail_list.tpl'); + } $new = array( 'label' => t('New Message'),