diff options
Diffstat (limited to 'mod/messages')
-rw-r--r-- | mod/messages/start.php | 4 |
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); |