aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-24 14:04:05 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-24 14:04:05 +0000
commitbbfc6e86deb15812de249f3b1c3b63b984b58e13 (patch)
tree305a7fc3a57878b772532706e676e6becf018dc1
parentde9d2ad77face238042f78c4c71273bb98e7f398 (diff)
downloadelgg-bbfc6e86deb15812de249f3b1c3b63b984b58e13.tar.gz
elgg-bbfc6e86deb15812de249f3b1c3b63b984b58e13.tar.bz2
messages now display the correct number unread
git-svn-id: http://code.elgg.org/elgg/trunk@6166 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/messages/start.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/messages/start.php b/mod/messages/start.php
index 6e130edca..afa894d05 100644
--- a/mod/messages/start.php
+++ b/mod/messages/start.php
@@ -290,11 +290,11 @@ function count_unread_messages() {
//get the users inbox messages
//$num_messages = get_entities_from_metadata("toId", $_SESSION['user']->getGUID(), "object", "messages", 0, 10, 0, "", 0, false);
- $num_messages = elgg_get_entities_from_metadata(array('metadata_name_value_pairs' => array(
+ $num_messages = elgg_get_entities_from_metadata(array('metadata_name_value_pairs' => array(
'toId' => $_SESSION['user']->guid,
'readYet' => 0,
'msg' => 1
- )));
+ ), 'owner_guid' => $_SESSION['user']->guid));
if (is_array($num_messages))
$counter = sizeof($num_messages);