MDL-21276 removed forgotten MNet global variable declaration and unused static cache

This commit is contained in:
David Mudrak
2010-11-03 20:44:10 +00:00
parent f180f99a6d
commit beee71f2e7
+1 -2
View File
@@ -4733,8 +4733,7 @@ function get_mailer($action='get') {
*/
function email_to_user($user, $from, $subject, $messagetext, $messagehtml='', $attachment='', $attachname='', $usetrueaddress=true, $replyto='', $replytoname='', $wordwrapwidth=79) {
global $CFG, $FULLME, $MNETIDPJUMPURL;
static $mnetjumps = array();
global $CFG, $FULLME;
if (empty($user) || empty($user->email)) {
mtrace('Error: lib/moodlelib.php email_to_user(): User is null or has no email');