diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 1866421d938..071b25a0ba2 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -1792,9 +1792,11 @@ function require_logout() { require($CFG->dirroot.'/auth/cas/logout.php'); } - require($CFG->dirroot.'/auth/mnet/auth.php'); - $authplugin = new auth_plugin_mnet(); - $authplugin->logout(); + if (extension_loaded('openssl')) { + require($CFG->dirroot.'/auth/mnet/auth.php'); + $authplugin = new auth_plugin_mnet(); + $authplugin->logout(); + } } if (ini_get_bool("register_globals") and check_php_version("4.3.0")) {