From ded77f8b7f039b9c531f638f5644c35a39b1d033 Mon Sep 17 00:00:00 2001 From: Penny Leach Date: Thu, 18 Feb 2010 05:01:17 +0000 Subject: [PATCH] mnet MDL-21098 fixed another small issue in the testclient --- admin/mnet/testclient.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/mnet/testclient.php b/admin/mnet/testclient.php index d48bb33e04e..970d413f15e 100644 --- a/admin/mnet/testclient.php +++ b/admin/mnet/testclient.php @@ -146,7 +146,7 @@ if (!empty($hostid) && array_key_exists($hostid, $hosts)) { $table->data = array(); foreach ($methods as $id => $method) { - $params = array('hostid' => $host->id, 'method' => $id); + $params = array('hostid' => $host->id, 'method' => $id+1); if (isset($servicename)) { $params['servicename'] = $servicename; } @@ -158,8 +158,8 @@ if (!empty($hostid) && array_key_exists($hostid, $hosts)) { } echo $OUTPUT->table($table); - if (isset($methodid) && array_key_exists($methodid, $methods)) { - $method = $methods[$methodid]; + if (isset($methodid) && array_key_exists($methodid-1, $methods)) { + $method = $methods[$methodid-1]; $mnet_request = new mnet_xmlrpc_client(); $mnet_request->set_method('system/methodSignature');