diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php index eb67dd0aae9..ae97601f910 100644 --- a/htdocs/categories/class/categorie.class.php +++ b/htdocs/categories/class/categorie.class.php @@ -865,7 +865,7 @@ class Categorie extends CommonObject // Compatibility with actioncomm table which has id instead of rowid if ($this->MAP_OBJ_TABLE[$type] == "actioncomm" || $type == "actioncomm") { $sql .= " AND c.fk_".(empty($this->MAP_CAT_FK[$type]) ? $type : $this->MAP_CAT_FK[$type])." = o.id"; - }else { + } else { $sql .= " AND c.fk_".(empty($this->MAP_CAT_FK[$type]) ? $type : $this->MAP_CAT_FK[$type])." = o.rowid"; } // Protection for external users