]> git.mxchange.org Git - friendica.git/commitdiff
Preview last five conversations in message-sidebar
authorFlxAlbroscheit <felix@artplantation.de>
Sun, 8 Nov 2015 14:45:42 +0000 (15:45 +0100)
committerFlxAlbroscheit <felix@artplantation.de>
Sun, 8 Nov 2015 14:45:42 +0000 (15:45 +0100)
mod/message.php

index 2a64c2e0518867098c69fa8865a2021544b7ac6a..0ed2b98841a4dcc9b1aab912ed369234955aac12 100644 (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'),