]> git.mjollnir.org Git - moodle.git/commitdiff
adding missing global $DB in mnet functions
authormjollnir_ <mjollnir_>
Thu, 21 Aug 2008 15:10:02 +0000 (15:10 +0000)
committermjollnir_ <mjollnir_>
Thu, 21 Aug 2008 15:10:02 +0000 (15:10 +0000)
mnet/lib.php

index 274983fb58e01b45a6153c23e62019767fda66c0..958695f5c7fa5cd3f607fd27b8da5c03ee39fdcd 100644 (file)
@@ -442,7 +442,7 @@ function ip_in_range($address, $network, $mask) {
  *                                  constant otherwise
  */
 function mnet_permit_rpc_call($includefile, $functionname, $class=false) {
-    global $CFG, $MNET_REMOTE_CLIENT;
+    global $CFG, $MNET_REMOTE_CLIENT, $DB;
 
     if (file_exists($CFG->dirroot . $includefile)) {
         include_once $CFG->dirroot . $includefile;