From c1e6ac6326764406aefaa13673a1bce1fe3d7a2d Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Tue, 20 Sep 2022 13:47:24 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/core/class/cunits.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/cunits.class.php b/htdocs/core/class/cunits.class.php index 477b6796a3c..4afd59b5780 100644 --- a/htdocs/core/class/cunits.class.php +++ b/htdocs/core/class/cunits.class.php @@ -429,7 +429,7 @@ class CUnits // extends CommonObject if ($mode == 'short_label') { return dol_getIdFromCode($this->db, $code, 'c_units', 'short_label', 'rowid', 0, " AND unit_type = '".$this->db->escape($unit_type)."'"); } elseif ($mode == 'code') { - return dol_getIdFromCode($this->db, $code, 'c_units', 'code', 'rowid',0, " AND unit_type = '". $this->db->escape($unit_type) ."'"); + return dol_getIdFromCode($this->db, $code, 'c_units', 'code', 'rowid', 0, " AND unit_type = '". $this->db->escape($unit_type) ."'"); } return $code;