From 613cf41fd69cf9114df357729bc95b52156744d8 Mon Sep 17 00:00:00 2001 From: FlxAlbroscheit Date: Sun, 8 Nov 2015 15:45:42 +0100 Subject: [PATCH] Preview last five conversations in message-sidebar --- mod/message.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'),