From 4d313cfd6acc45509f96dd67c01589a8c94b3345 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 1 Jul 2026 17:10:37 +0200 Subject: [PATCH] Fix warning --- htdocs/install/index.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/install/index.php b/htdocs/install/index.php index c089a90fdf4..41dd768a0e1 100644 --- a/htdocs/install/index.php +++ b/htdocs/install/index.php @@ -27,6 +27,11 @@ define('ALLOWED_IF_UPGRADE_UNLOCK_FOUND', 1); include_once 'inc.php'; +/** + * @var string $conffile + * @var ?string $dolibarr_main_url_root + */ +'@phan-var-force string $conffile'; // From inc.php include_once '../core/class/html.form.class.php'; include_once '../core/class/html.formadmin.class.php'; @@ -36,6 +41,7 @@ $err = 0; // If the config file exists and is filled, we're not on first install so we skip the language selection page if (file_exists($conffile) && isset($dolibarr_main_url_root)) { + //header("Location: '.$dolibarr_main_url_root.'/install/check.php?testget=ok"); header("Location: check.php?testget=ok"); exit; }