Skip to content

Commit

Permalink
Add configuration parameter include: check if the key is existing in …
Browse files Browse the repository at this point in the history
…the config (#181)

* 045Q/01 (Basisklassifikation) is not displayed at the Sacherschließung page #178

* Don't show \!\! when footer missing

* Add configuration parameter `include`

* Turn on/off the git connection feature by configuration #179

* Add configuration parameter : check if the key is existing in the config

---------

Co-authored-by: Jakob Voss <[email protected]>
  • Loading branch information
pkiraly and nichtich authored Apr 24, 2024
1 parent 9a5ba6a commit 6e53f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Utils/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function fromIniFile(string $file, array $defaults=[]) {
throw new Exception("failed to read config file!");
}

if ($ini['include'] && file_exists($ini['include'])) {
if (isset($ini['include']) && file_exists($ini['include'])) {
$include = @parse_ini_file($ini['include'], false, INI_SCANNER_TYPED);
if (!$include) {
throw new Exception("failed to include config file!");
Expand Down

0 comments on commit 6e53f88

Please sign in to comment.