diff --git a/src/Core/Platform/Infrastructure/Repository/DbWriteUpdateRepository.php b/src/Core/Platform/Infrastructure/Repository/DbWriteUpdateRepository.php index 1255ee9ecc8..a973e23e181 100644 --- a/src/Core/Platform/Infrastructure/Repository/DbWriteUpdateRepository.php +++ b/src/Core/Platform/Infrastructure/Repository/DbWriteUpdateRepository.php @@ -287,7 +287,7 @@ private function writeExecutedQueriesCountInTemporaryFile(string $tmpFile, int $ */ private function isSqlComment(string $line): bool { - return str_starts_with('--', trim($line)); + return str_starts_with(trim($line), '--'); } /** diff --git a/www/install/insertBaseConf.sql b/www/install/insertBaseConf.sql index 06481bb738f..df57294e767 100644 --- a/www/install/insertBaseConf.sql +++ b/www/install/insertBaseConf.sql @@ -2,7 +2,7 @@ -- Insert version -- -INSERT INTO `informations` (`key` ,`value`) VALUES ('version', '22.04.3'); +INSERT INTO `informations` (`key` ,`value`) VALUES ('version', '22.04.4'); -- -- Contenu de la table `contact` diff --git a/www/install/php/Update-22.04.4.php b/www/install/php/Update-22.04.4.php new file mode 100644 index 00000000000..d32c63228e5 --- /dev/null +++ b/www/install/php/Update-22.04.4.php @@ -0,0 +1,19 @@ + '1'; \ No newline at end of file