Permalink
Browse files

MDL-26376 fix incorrect Shibboleth string and undefined property duri…

…ng first config saving
  • Loading branch information...
1 parent d911c72 commit cd138b26f1c3154a3f8b5818b71e6ab97eea4c67 @skodak skodak committed Feb 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 auth/shibboleth/auth.php
@@ -242,7 +242,7 @@ function process_config($config) {
// set to defaults if undefined
if (!isset($config->auth_instructions) or empty($config->user_attribute)) {
- $config->auth_instructions = get_string('shibboleth_instructions', 'auth', $CFG->wwwroot.'/auth/shibboleth/index.php');
+ $config->auth_instructions = get_string('auth_shib_instructions', 'auth_shibboleth', $CFG->wwwroot.'/auth/shibboleth/index.php');
}
if (!isset ($config->user_attribute)) {
$config->user_attribute = '';
@@ -292,7 +292,7 @@ function process_config($config) {
} else {
// Check if integrated WAYF was enabled and is now turned off
// If it was and only then, reset the Moodle alternate URL
- if ($this->config->alt_login == 'on'){
+ if (isset($this->config->alt_login) and $this->config->alt_login == 'on'){
set_config('alt_login', 'off', 'auth/shibboleth');
set_config('alternateloginurl', '');
}

0 comments on commit cd138b2

Please sign in to comment.