aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-30 22:27:41 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-30 22:27:41 -0700
commitaea121ea2addbb3319cf37e22c4d29980612326f (patch)
treeda48d06e7832c70d03b226d72f0bed758fade0bb
parent56fc81f57e07f4208c639fee71105b66471846ef (diff)
downloadvolse-hubzilla-aea121ea2addbb3319cf37e22c4d29980612326f.tar.gz
volse-hubzilla-aea121ea2addbb3319cf37e22c4d29980612326f.tar.bz2
volse-hubzilla-aea121ea2addbb3319cf37e22c4d29980612326f.zip
message fixes
-rw-r--r--mod/message.php4
-rw-r--r--view/mail_head.tpl4
2 files changed, 4 insertions, 4 deletions
diff --git a/mod/message.php b/mod/message.php
index e1a86727b..3aac2ec28 100644
--- a/mod/message.php
+++ b/mod/message.php
@@ -196,7 +196,7 @@ function message_content(&$a) {
);
if(! count($r)) {
notice( t('No messages.') . EOL);
- return;
+ return $o;
}
$tpl = file_get_contents('view/mail_list.tpl');
@@ -238,7 +238,7 @@ function message_content(&$a) {
}
if(! count($messages)) {
notice( t('Message not available.') . EOL );
- return;
+ return $o;
}
$r = q("UPDATE `mail` SET `seen` = 1 WHERE `parent-uri` = '%s' AND `uid` = %d",
diff --git a/view/mail_head.tpl b/view/mail_head.tpl
index dd53d621a..eac79eb59 100644
--- a/view/mail_head.tpl
+++ b/view/mail_head.tpl
@@ -3,7 +3,7 @@
<div class="message-links">
<ul>
<li><a href="message" class="message-link-inbox">$inbox</a></li>
-<li><a href="message/sent" class="message-link-outbox">$outbox</li>
-<li><a href="message/new" class="message-link-new">$new</li>
+<li><a href="message/sent" class="message-link-outbox">$outbox</a></li>
+<li><a href="message/new" class="message-link-new">$new</a></li>
<ul>
</div>