From bbfc6e86deb15812de249f3b1c3b63b984b58e13 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 24 May 2010 14:04:05 +0000 Subject: messages now display the correct number unread git-svn-id: http://code.elgg.org/elgg/trunk@6166 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/messages/start.php | 4 ++-- 1 file 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); -- cgit v1.2.3