Update categorie.class.php

This commit is contained in:
Laurent Destailleur 2020-10-26 19:23:23 +01:00 committed by GitHub
parent a031adf99e
commit b2f08e5762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -323,7 +323,7 @@ class Categorie extends CommonObject
$sql .= " WHERE ref_ext LIKE '".$this->db->escape($ref_ext)."'"; $sql .= " WHERE ref_ext LIKE '".$this->db->escape($ref_ext)."'";
} else { } else {
$sql .= " WHERE label = '".$this->db->escape($label)."' AND entity IN (".getEntity('category').")"; $sql .= " WHERE label = '".$this->db->escape($label)."' AND entity IN (".getEntity('category').")";
if (!is_null($type)) $sql .= " AND type = ".(int) $type; if (!is_null($type)) $sql .= " AND type = ".((int) $type);
} }
dol_syslog(get_class($this)."::fetch", LOG_DEBUG); dol_syslog(get_class($this)."::fetch", LOG_DEBUG);