mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
fixed some small bugs
This commit is contained in:
parent
84b3c159df
commit
444f6252dd
3 changed files with 16 additions and 11 deletions
|
@ -116,7 +116,7 @@
|
|||
case 'edit': /// Print the bottom frame with the text editor
|
||||
|
||||
/// Check that the user is not blocking us!!
|
||||
if ($contact = get_record('message_contacts', 'userid', $user->id, 'contact', $USER->id)) {
|
||||
if ($contact = get_record('message_contacts', 'userid', $user->id, 'contactid', $USER->id)) {
|
||||
if ($contact->blocked) {
|
||||
print_heading(get_string('userisblockingyou', 'message'));
|
||||
exit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue