Skip to content

Commit

Permalink
Fixed two errors that prevented the shibboleth settings from being sa…
Browse files Browse the repository at this point in the history
…ved unless

a file for the data modification api was given
  • Loading branch information
exe-cutor committed May 15, 2007
1 parent 439aad5 commit 0d3703f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion auth/shibboleth/auth.php
Expand Up @@ -174,6 +174,8 @@ function config_form($config, $err, $user_fields) {
* @param object $config Configuration object
*/
function process_config($config) {
global $CFG;

// 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');
Expand All @@ -195,7 +197,8 @@ function process_config($config) {
set_config('changepasswordurl', $config->changepasswordurl, 'auth/shibboleth');

// Check values and return false if something is wrong
if (!file_exists($config->convert_data) || !is_readable($config->convert_data)){
// Patch Anyware Technologies (14/05/07)
if (($config->convert_data != '')&&(!file_exists($config->convert_data) || !is_readable($config->convert_data))){
return false;
}

Expand Down

0 comments on commit 0d3703f

Please sign in to comment.