From 40fa2a74e755c4449987960f36fc9ac725bf7a66 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 1 Mar 2007 07:59:15 +0000 Subject: [PATCH] Don't redirect guests to mymoodle page! MDL-8594 --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); } } -- 2.39.5