adding missing global $DB in mnet functions

This commit is contained in:
mjollnir_ 2008-08-21 15:10:02 +00:00
parent e64de55dec
commit bd2bf45169

View file

@ -442,7 +442,7 @@ function ip_in_range($address, $network, $mask) {
* constant otherwise * constant otherwise
*/ */
function mnet_permit_rpc_call($includefile, $functionname, $class=false) { 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)) { if (file_exists($CFG->dirroot . $includefile)) {
include_once $CFG->dirroot . $includefile; include_once $CFG->dirroot . $includefile;