From 86a49f98e20f6ae9c7584fb3e5a346b14790330f Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Thu, 4 Jul 2024 07:44:15 +0400 Subject: [PATCH] modifs.mineures sans commentaires --- src/db/CapacitorStorage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db/CapacitorStorage.php b/src/db/CapacitorStorage.php index 4448654..fcc49fd 100644 --- a/src/db/CapacitorStorage.php +++ b/src/db/CapacitorStorage.php @@ -516,7 +516,7 @@ EOT; ]); if ($manageTransactions && $commitThreshold !== null) { $commitThreshold--; - if ($commitThreshold == 0) { + if ($commitThreshold <= 0) { $db->commit(); $db->beginTransaction(); $commitThreshold = $channel->getEachCommitThreshold(); @@ -579,7 +579,7 @@ EOT; ]); if ($manageTransactions && $commitThreshold !== null) { $commitThreshold--; - if ($commitThreshold == 0) { + if ($commitThreshold <= 0) { $db->commit(); $db->beginTransaction(); $commitThreshold = $channel->getEachCommitThreshold();