From e945004fd1173ad5ab62109af6ece774a42942b2 Mon Sep 17 00:00:00 2001 From: donal72 Date: Tue, 2 Oct 2007 06:45:40 +0000 Subject: [PATCH] Bugfix caused by typo in /mnet/lib.php: This issue will have broken mnet for many users. --- mnet/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5