From: skodak Date: Fri, 23 Feb 2007 20:25:16 +0000 (+0000) Subject: MDL-8639 fixed installation notices X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fc12edcd5d4be09d90ba2bc7012c8a70e56f53dc;p=moodle.git MDL-8639 fixed installation notices --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 9b5d93fba5..5d28fcd40f 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -4086,7 +4086,7 @@ function clean_filename($string) { function current_language() { global $CFG, $USER, $SESSION, $COURSE; - if ($COURSE->id != SITEID and !empty($COURSE->lang)) { // Course language can override all other settings for this page + if (!empty($COURSE->id) and $COURSE->id != SITEID and !empty($COURSE->lang)) { // Course language can override all other settings for this page $return = $COURSE->lang; } else if (!empty($SESSION->lang)) { // Session language can override other settings