mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-12990 - save more needless db queries
merged from MOODLE_19_STABLE
This commit is contained in:
parent
ba71f5c4b3
commit
b4d80abe0c
1 changed files with 2 additions and 2 deletions
|
@ -495,9 +495,9 @@ function message_print_search_results($frm) {
|
|||
function message_print_user ($user=false, $iscontact=false, $isblocked=false) {
|
||||
global $USER;
|
||||
if ($user === false) {
|
||||
print_user_picture($USER->id, SITEID, $USER->picture, 20, false, true, 'userwindow');
|
||||
print_user_picture($USER, SITEID, $USER->picture, 20, false, true, 'userwindow');
|
||||
} else {
|
||||
print_user_picture($user->id, SITEID, $user->picture, 20, false, true, 'userwindow');
|
||||
print_user_picture($user, SITEID, $user->picture, 20, false, true, 'userwindow');
|
||||
echo ' ';
|
||||
if ($iscontact) {
|
||||
message_contact_link($user->id, 'remove');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue