From: donal72 Date: Tue, 2 Oct 2007 06:45:40 +0000 (+0000) Subject: Bugfix caused by typo in /mnet/lib.php: This issue will have broken mnet for many... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e945004fd1173ad5ab62109af6ece774a42942b2;p=moodle.git Bugfix caused by typo in /mnet/lib.php: This issue will have broken mnet for many users. --- diff --git a/mnet/lib.php b/mnet/lib.php index 4873697fb0..aa6ebf5ce0 100644 --- a/mnet/lib.php +++ b/mnet/lib.php @@ -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;