Got rid of warning messages

This commit is contained in:
exe-cutor
2007-07-11 08:29:10 +00:00
parent 21e00abf42
commit ba1b4cd1ef
+7 -2
View File
@@ -87,7 +87,12 @@ class auth_plugin_shibboleth extends auth_plugin_base {
$search_attribs = array();
foreach ($attrmap as $key=>$value) {
// Check if attribute is present
if (!isset($_SERVER[$value])){
$result[$key] = '';
continue;
}
// Make usename lowercase
if ($key == 'username'){
$result[$key] = strtolower($this->get_first_string($_SERVER[$value]));
@@ -224,4 +229,4 @@ class auth_plugin_shibboleth extends auth_plugin_base {
}
}
?>
?>