]> git.mjollnir.org Git - moodle.git/commitdiff
mnet MDL-21294 fixed some errors in the new mnet exception stuff
authorPenny Leach <penny@liip.ch>
Wed, 13 Jan 2010 03:46:45 +0000 (03:46 +0000)
committerPenny Leach <penny@liip.ch>
Wed, 13 Jan 2010 03:46:45 +0000 (03:46 +0000)
I think I must have tested mnet client/server around the wrong way

mnet/xmlrpc/server.php

index 4b5c3b94987bc6f7f61c51a87c2f62b98f9fb132..2658e899f7ff4388b2b987a662e87ac6960fc646 100644 (file)
@@ -51,7 +51,7 @@ $MNET_REMOTE_CLIENT = new mnet_remote_client();
 try {
     $plaintextmessage = mnet_server_strip_encryption($HTTP_RAW_POST_DATA);
     $xmlrpcrequest = mnet_server_strip_signature($plaintextmessage);
-catch (Exception $e {
+} catch (Exception $e) {
     exit(mnet_server_fault($e->getCode(), $e->getMessage(), $e->a));
 }
 
@@ -74,7 +74,7 @@ if ((($MNET_REMOTE_CLIENT->request_was_encrypted == true) && ($MNET_REMOTE_CLIEN
     || (($MNET_REMOTE_CLIENT->signatureok == true) && ($MNET_REMOTE_CLIENT->plaintext_is_ok() == true))) {
     try {
         $response = mnet_server_dispatch($xmlrpcrequest);
-    catch (Exception $e) {
+    catch (Exception $e) {
         exit(mnet_server_fault($e->getCode(), $e->getMessage(), $e->a));
     }
 } else {