Some minor changes in order to avoid some notices...

This commit is contained in:
stronk7
2006-06-25 10:15:31 +00:00
parent b7504102dc
commit 459154ffbd
+6 -1
View File
@@ -1,10 +1,15 @@
<?php // $Id$
require_once('../config.php');
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
require_once($CFG->dirroot.'/course/lib.php');
define('UNCATEGORISED', 'uncategorised');
global $GRADEPREFS, $GRADEPREFSDEFAULTS; // This variables are going to be global... :-/
$GRADEPREFS = array('use_advanced', // Only add new preferences to the end of this array!
'use_weighted_for_letter', // as the order counts and will affect backward compatibility
'display_weighted',