Skip to content

Commit

Permalink
fix in accesso file di configurazione
Browse files Browse the repository at this point in the history
  • Loading branch information
madbob committed Dec 3, 2023
1 parent eaee08b commit 2049984
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions code/app/Helpers/Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,14 @@ function read_instance_config_file($path)

foreach($config as $c) {
$c = trim($c);
if (!empty($c)) {
list($name, $value) = explode('=', $c);
$params[$name] = $value;
if (empty($c) == false) {
if (strpos($c, '=') === false) {
\Log::error('Configurazione ambigua in file ' . $path . ' - ' . $c);
}
else {
list($name, $value) = explode('=', $c);
$params[$name] = $value;
}
}
}

Expand Down

0 comments on commit 2049984

Please sign in to comment.