Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-32688-m23' of git://github.com/itamart/moodle into …

…MOODLE_23_STABLE
  • Loading branch information...
commit 0671db29cec89fb4ecd4763699185d577e42f250 2 parents c59d51b + e7f72fb
@stronk7 stronk7 authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 my/index.php
View
12 my/index.php
@@ -81,11 +81,13 @@
$PAGE->set_title($header);
$PAGE->set_heading($header);
-if (get_home_page() != HOMEPAGE_MY) {
- if (optional_param('setdefaulthome', false, PARAM_BOOL)) {
- set_user_preference('user_home_page_preference', HOMEPAGE_MY);
- } else if (!empty($CFG->defaulthomepage) && $CFG->defaulthomepage == HOMEPAGE_USER) {
- $PAGE->settingsnav->get('usercurrentsettings')->add(get_string('makethismyhome'), new moodle_url('/my/', array('setdefaulthome'=>true)), navigation_node::TYPE_SETTING);
+if (!isguestuser()) { // Skip default home page for guests
+ if (get_home_page() != HOMEPAGE_MY) {
+ if (optional_param('setdefaulthome', false, PARAM_BOOL)) {
+ set_user_preference('user_home_page_preference', HOMEPAGE_MY);
+ } else if (!empty($CFG->defaulthomepage) && $CFG->defaulthomepage == HOMEPAGE_USER) {
+ $PAGE->settingsnav->get('usercurrentsettings')->add(get_string('makethismyhome'), new moodle_url('/my/', array('setdefaulthome'=>true)), navigation_node::TYPE_SETTING);
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.