Preview last five conversations in message-sidebar

This commit is contained in:
FlxAlbroscheit 2015-11-08 15:45:42 +01:00
parent 06676e7c1b
commit 613cf41fd6

View File

@ -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'),