From ff4ae2682ca99216ccc631ac2e0407683d4fa665 Mon Sep 17 00:00:00 2001 From: "i.semenov" Date: Thu, 7 Mar 2024 15:13:52 +0300 Subject: [PATCH] Type safety fixes --- config.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/config.inc.php b/config.inc.php index 0673d7e..64b787f 100644 --- a/config.inc.php +++ b/config.inc.php @@ -920,6 +920,7 @@ function config_ensure_header(string $conf_dir, string $file, bool $force = fals $lines = file($file); + $is_success = false; $lines[0] = config_set_header($lines[0], $conf_id, $alias, $is_success); if(!$is_success) throw new Exception("Could not set header for '$file' in line: {$lines[0]}");