aboutsummaryrefslogtreecommitdiff
path: root/mod/messages/pages
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-10-29 08:28:10 -0400
committerCash Costello <cash.costello@gmail.com>2011-10-29 08:28:10 -0400
commit2cbfc4624135475764d6b5a53b0b95fe980793a2 (patch)
treea32ab4c32e365789514d974a4baada30d12d18d0 /mod/messages/pages
parentfeefadb125770c0a513735ba7b3d6bea78c77d3b (diff)
downloadelgg-2cbfc4624135475764d6b5a53b0b95fe980793a2.tar.gz
elgg-2cbfc4624135475764d6b5a53b0b95fe980793a2.tar.bz2
Fixes #4015 decrementing the count before adding to the topbar
Diffstat (limited to 'mod/messages/pages')
-rw-r--r--mod/messages/pages/messages/read.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/messages/pages/messages/read.php b/mod/messages/pages/messages/read.php
index 310485ee2..d41551be4 100644
--- a/mod/messages/pages/messages/read.php
+++ b/mod/messages/pages/messages/read.php
@@ -12,6 +12,9 @@ if (!$message) {
forward();
}
+// mark the message as read
+$message->readYet = true;
+
elgg_set_page_owner_guid($message->getOwnerGUID());
$page_owner = elgg_get_page_owner_entity();