]> git.mjollnir.org Git - moodle.git/commitdiff
Bugfix caused by typo in /mnet/lib.php: This issue will have broken mnet for many...
authordonal72 <donal72>
Tue, 2 Oct 2007 06:45:40 +0000 (06:45 +0000)
committerdonal72 <donal72>
Tue, 2 Oct 2007 06:45:40 +0000 (06:45 +0000)
mnet/lib.php

index 4873697fb0712a5c4bef19642d937f6d9fbc31fc..aa6ebf5ce0b3ae61964b32bce6642889eb2cd2d4 100644 (file)
@@ -250,7 +250,7 @@ function mnet_get_keypair() {
     static $keypair = null;
     if (!is_null($keypair)) return $keypair;
     if ($result = get_field('config_plugins', 'value', 'plugin', 'mnet', 'name', 'openssl')) {
-        $keypair               = explode('@@@@@@@@', $keypair);
+        list($keypair['certificate'], $keypair['keypair_PEM']) = explode('@@@@@@@@', $result);
         $keypair['privatekey'] = openssl_pkey_get_private($keypair['keypair_PEM']);
         $keypair['publickey']  = openssl_pkey_get_public($keypair['certificate']);
         return $keypair;