Skip to content
Snippets Groups Projects
Unverified Commit c6b63d7a authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

bugfix: Allow the "application" conf option to be missing.

parent b95b0229
No related branches found
No related tags found
No related merge requests found
...@@ -783,8 +783,8 @@ class HTTP ...@@ -783,8 +783,8 @@ class HTTP
*/ */
/** @var \SimpleSAML_Configuration $appcfg */ /** @var \SimpleSAML_Configuration $appcfg */
$appcfg = $cfg->getConfigItem('application', array()); $appcfg = $cfg->getConfigItem('application', null);
$appurl = $appcfg->getString('baseURL', ''); $appurl = ($appcfg instanceof \SimpleSAML_Configuration) ? $appcfg->getString('baseURL', '') : '';
if (!empty($appurl)) { if (!empty($appurl)) {
$protocol = parse_url($appurl, PHP_URL_SCHEME); $protocol = parse_url($appurl, PHP_URL_SCHEME);
$hostname = parse_url($appurl, PHP_URL_HOST); $hostname = parse_url($appurl, PHP_URL_HOST);
......
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