diff --git a/htdocs/includes/modules/fichinter/mod_arctic.php b/htdocs/includes/modules/fichinter/mod_arctic.php
index e3152c18564d7bcdd415519c3b371e8e789c996a..e81e9314161d1f064b2e087d65d548ac8175eca8 100644
--- a/htdocs/includes/modules/fichinter/mod_arctic.php
+++ b/htdocs/includes/modules/fichinter/mod_arctic.php
@@ -175,7 +175,7 @@ function info()
           $searchyy='';
           $sql = "SELECT MAX(ref)";
           $sql.= " FROM ".MAIN_DB_PREFIX."fichinter";
-          if ($conf->global->FICHEINTER_NUM_RESTART_BEGIN_YEAR) $sql.= " WHERE ref like '".$this->searchLast."%'";
+          if ($conf->global->FICHEINTER_NUM_RESTART_BEGIN_YEAR) $sql.= " WHERE ref REGEXP '^".$this->searchLast."'";
           $resql=$db->query($sql);
           if ($resql)
           {
@@ -189,7 +189,7 @@ function info()
             $previousyy='';
             $sql = "SELECT MAX(ref)";
             $sql.= " FROM ".MAIN_DB_PREFIX."fichinter";
-            $sql.= " WHERE ref like '".$this->searchLastWithPreviousYear."%'";
+            $sql.= " WHERE ref REGEXP '^".$this->searchLastWithPreviousYear."'";
             $resql=$db->query($sql);
             if ($resql)
             {
@@ -204,7 +204,7 @@ function info()
             // Recherche rapide car restreint par un like sur champ index�
             $sql = "SELECT MAX(0+SUBSTRING(ref,-".$posindice."))";
             $sql.= " FROM ".MAIN_DB_PREFIX."fichinter";
-            $sql.= " WHERE ref like '${searchyy}%'";
+            $sql.= " WHERE ref REGEXP '^".$searchyy."'";
             $resql=$db->query($sql);
             if ($resql)
             {
@@ -377,9 +377,9 @@ function info()
         					// On r�cup�re le mois si besoin
         					$this->mm = strftime("%m",time());
         					$this->numMatrice[$k] = '$mm';
-        					$this->searchLast .= $this->mm;
+        					$this->searchLast .= '[0-9][0-9]';
         					$this->searchLastWithNoYear .= '[0-9][0-9]';
-        					$this->searchLastWithPreviousYear .= $this->mm;
+        					$this->searchLastWithPreviousYear .= '[0-9][0-9]';
         					$k++;
         				}
         				else if ($idMatrice == 'counter')