Index: mnet/xmlrpc/client.php =================================================================== RCS file: /cvsroot/moodle/moodle/mnet/xmlrpc/client.php,v retrieving revision 1.39 diff -u -r1.39 client.php --- mnet/xmlrpc/client.php 5 Feb 2010 03:56:45 -0000 1.39 +++ mnet/xmlrpc/client.php 17 Feb 2010 01:38:42 -0000 @@ -326,7 +326,7 @@ // Find methods that we subscribe to on this host $sql = " SELECT - * + r.id FROM {mnet_remote_rpc} r, {mnet_remote_service2rpc} s2r, @@ -338,7 +338,7 @@ h2s.subscribe = '1' AND h2s.hostid in ({$id_list})"; - $permission = $DB->get_record_sql($sql, array($this->method)); + $permission = $DB->record_exists_sql($sql, array($this->method)); if ($permission == true) { return true; }