Preview last five conversations in message-sidebar
This commit is contained in:
parent
06676e7c1b
commit
613cf41fd6
1 changed files with 2 additions and 1 deletions
|
@ -7,8 +7,9 @@ function message_init(&$a) {
|
||||||
|
|
||||||
$tabs = '';
|
$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');
|
$tabs = render_messages(get_messages(local_user(),0,5), 'mail_list.tpl');
|
||||||
|
}
|
||||||
|
|
||||||
$new = array(
|
$new = array(
|
||||||
'label' => t('New Message'),
|
'label' => t('New Message'),
|
||||||
|
|
Loading…
Reference in a new issue