diff --git a/message/lib.php b/message/lib.php index 8f061430ef369..47113329b3ad7 100644 --- a/message/lib.php +++ b/message/lib.php @@ -359,7 +359,7 @@ function message_print_contacts($onlinecontacts, $offlinecontacts, $strangers, $ echo ''; foreach ($strangers as $stranger) { - if ($minmessages==0 || $contact->messagecount>=$minmessages) { + if ($minmessages==0 || $stranger->messagecount>=$minmessages) { message_print_contactlist_user($stranger, IS_NOT_CONTACT, IS_NOT_BLOCKED, $contactselecturl, $showactionlinks); } } @@ -1684,4 +1684,4 @@ function message_mark_messages_read($destuserid, $fromuserid){ } } } -} \ No newline at end of file +}