From beee71f2e787f7e989458dabe1fb72b42a30ca30 Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Wed, 3 Nov 2010 20:44:10 +0000 Subject: [PATCH] MDL-21276 removed forgotten MNet global variable declaration and unused static cache --- lib/moodlelib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 4e5228b36ef..b018999a3b4 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -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');