Fix warning

This commit is contained in:
Laurent Destailleur 2026-07-01 17:10:37 +02:00
parent f8d674f324
commit 4d313cfd6a

View file

@ -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;
}