diff --git a/auth/mnet/auth.php b/auth/mnet/auth.php index 5859c07f424..159b702e472 100644 --- a/auth/mnet/auth.php +++ b/auth/mnet/auth.php @@ -241,7 +241,7 @@ class auth_plugin_mnet extends auth_plugin_base { require_once $CFG->dirroot . '/mnet/xmlrpc/client.php'; // verify the remote host is configured locally before attempting RPC call - if (! $remotehost = $DB->get_record('mnet_host', array('wwwroot'=>$remotewwwroot))) { + if (! $remotehost = $DB->get_record('mnet_host', array('wwwroot' => $remotewwwroot, 'deleted' => 0))) { print_error('notpermittedtoland', 'mnet'); } @@ -1302,9 +1302,12 @@ class auth_plugin_mnet extends auth_plugin_base { svc.apiversion, h2s.id as h2s_id FROM + {mnet_host} h, {mnet_service} svc, {mnet_host2service} h2s WHERE + h.deleted = '0' AND + h.id = h2s.hostid AND h2s.hostid = ? AND h2s.serviceid = svc.id AND svc.name = ? AND