From: moodler Date: Thu, 1 Mar 2007 07:59:15 +0000 (+0000) Subject: Don't redirect guests to mymoodle page! MDL-8594 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=40fa2a74e755c4449987960f36fc9ac725bf7a66;p=moodle.git Don't redirect guests to mymoodle page! MDL-8594 --- diff --git a/index.php b/index.php index a3a3607b98..6495d6e279 100644 --- a/index.php +++ b/index.php @@ -60,7 +60,7 @@ redirect($CFG->wwwroot .'/'. $CFG->admin .'/index.php'); } } else if (!empty($CFG->mymoodleredirect)) { // Redirect logged-in users to My Moodle overview if required - if (isloggedin()) { + if (isloggedin() && $USER->username != 'guest') { redirect($CFG->wwwroot .'/my/index.php'); } }