diff --git a/src/Table.php b/src/Table.php
index f2f74641062f03fe5cf652a31643f97a784f77fc..5cbd54bbe0ceb07f25f1c2f87e6fe1ed67382039 100644
--- a/src/Table.php
+++ b/src/Table.php
@@ -316,8 +316,8 @@ class Table
             $data[$idCol]         = $this->lastInsertId;
         }
 
-        $histoUserId = (int)$bdd->getHistoUserId();
-        if ($histoUserId && $this->hasHistorique()) {
+        $histoUserId = $bdd->getHistoUserId();
+        if ($histoUserId !== null && $this->hasHistorique()) {
             $histoCreationCol       = $this->getBdd()->getOption(Bdd::OPTION_HISTO_CREATION_COLUMN);
             $histoCreateurIdCol     = $this->getBdd()->getOption(Bdd::OPTION_HISTO_CREATEUR_ID_COLUMN);
             $histoModificationCol   = $this->getBdd()->getOption(Bdd::OPTION_HISTO_MODIFICATION_COLUMN);
@@ -367,8 +367,8 @@ class Table
 
         $params = [];
 
-        $histoUserId = (int)$bdd->getHistoUserId();
-        if ($histoUserId && $this->hasHistorique()) {
+        $histoUserId = $bdd->getHistoUserId();
+        if ($histoUserId !== null && $this->hasHistorique()) {
             $histoModificationCol   = $this->getBdd()->getOption(Bdd::OPTION_HISTO_MODIFICATION_COLUMN);
             $histoModificateurIdCol = $this->getBdd()->getOption(Bdd::OPTION_HISTO_MODIFICATEUR_ID_COLUMN);
 
@@ -445,7 +445,7 @@ class Table
         $ddl = $this->getDdl();
         $bdd = $this->getBdd();
 
-        $histoUserId   = (int)$bdd->getHistoUserId();
+        $histoUserId   = $bdd->getHistoUserId();
         $hasHistorique = $this->hasHistorique();
 
         $idCol = $this->getBdd()->getOption(Bdd::OPTION_ID_COLUMN);
@@ -491,7 +491,7 @@ class Table
                 $n = null;
             }
 
-            if (empty($n) && $options['soft-delete'] && $hasHistorique && $histoUserId) { // SOFT DELETE
+            if (empty($n) && $options['soft-delete'] && $hasHistorique && $histoUserId !== null) { // SOFT DELETE
                 $histoDestructionCol   = $this->getBdd()->getOption(Bdd::OPTION_HISTO_DESTRUCTION_COLUMN);
                 $histoDestructeurIdCol = $this->getBdd()->getOption(Bdd::OPTION_HISTO_DESTRUCTEUR_ID_COLUMN);