Commit f218df1b authored by Francois Marier's avatar Francois Marier
Browse files

auth/saml: bail immediately when saml is not configured



This prevents a fatal error in the require_once() call just below.
Signed-off-by: default avatarFrancois Marier <francois@catalyst.net.nz>
parent 78a82059
......@@ -57,6 +57,9 @@ require(dirname(__FILE__) . '/init.php');
// get the config pointing to the SAML library - and load it
$samllib = get_config_plugin('auth', 'saml', 'simplesamlphplib');
if (null === $samllib) {
exit(0);
}
require_once($samllib.'/lib/_autoload.php');
// point at the configured config directory
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment