Skip to content

Commit 90d00f6

Browse files
committed
MDL-86434 core: Page title for invalid user ID
1 parent 2653626 commit 90d00f6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

user/profile.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
require_login();
5151
if (isguestuser()) {
5252
$PAGE->set_context(context_system::instance());
53+
$PAGE->set_title(get_string('user'));
5354
echo $OUTPUT->header();
5455
echo $OUTPUT->confirm(get_string('guestcantaccessprofiles', 'error'),
5556
get_login_url(),
@@ -63,6 +64,7 @@
6364

6465
if ((!$user = $DB->get_record('user', array('id' => $userid))) || ($user->deleted)) {
6566
$PAGE->set_context(context_system::instance());
67+
$PAGE->set_title(get_string('user'));
6668
echo $OUTPUT->header();
6769
if (!$user) {
6870
echo $OUTPUT->notification(get_string('invaliduser', 'error'));

0 commit comments

Comments
 (0)