MDL-27192 Global scope does not need global usage

This commit is contained in:
Eloy Lafuente (stronk7)
2011-05-17 18:50:16 +02:00
parent 19ab387d06
commit 733bd07b8b
+1 -1
View File
@@ -11,7 +11,7 @@ $authtoken = required_param('authtoken', PARAM_ALPHANUM);
if (empty($CFG->enablecalendarexport)) {
die('no export');
}
global $DB;
//Fetch user information
if (!$user = $DB->get_record('user', array('username' => $username), 'id,password')) {
//No such user