]> git.mjollnir.org Git - moodle.git/commitdiff
mnet/lib: Bugfix: mnet_generate_keypair: Declare USER as global
authormartinlanghoff <martinlanghoff>
Thu, 4 Jan 2007 03:33:34 +0000 (03:33 +0000)
committermartinlanghoff <martinlanghoff>
Thu, 4 Jan 2007 03:33:34 +0000 (03:33 +0000)
Author: Donal McMullan <donal@catalyst.net.nz>

mnet/lib.php

index ced60f647f50ff885d6143988ca864a6e0bb74b5..c28d3231464e4ffa15f128e396c6934259607b96 100644 (file)
@@ -269,7 +269,7 @@ function mnet_get_keypair() {
  * @return  string      The signature over that text
  */
 function mnet_generate_keypair($dn = null) {
-    global $CFG;
+    global $CFG, $USER;
     $host = strtolower($CFG->wwwroot);
     $host = ereg_replace("^http(s)?://",'',$host);
     $break = strpos($host.'/' , '/');