Skip to content
Snippets Groups Projects
Commit a08b427e authored by Olav Morken's avatar Olav Morken
Browse files

Configuration.php: Avoid notice in error logs if an configuration option isn't set in config.php.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@97 44740490-163a-0410-bde0-09ae8108e29a
parent 7f28fb51
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,14 @@ class SimpleSAML_Configuration {
if (!isset($this->configuration)) {
$this->loadConfig();
}
/* Avoid notice about non-existant member of array
* if an option isn't set.
*/
if (!array_key_exists($name, $this->configuration)) {
return NULL;
}
return $this->configuration[$name];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment