Fix php compatibility

This commit is contained in:
Laurent Destailleur 2019-11-16 23:28:56 +01:00 committed by GitHub
parent 1648fc142e
commit 023f359328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -781,7 +781,8 @@ class Categorie extends CommonObject
$objs = array();
$obj = new $this->MAP_OBJ_CLASS[$type]($this->db);
$tmpclass = $this->MAP_OBJ_CLASS[$type];
$obj = new $tmpclass($this->db);
$sql = "SELECT c.fk_".$this->MAP_CAT_FK[$type];
$sql .= " FROM ".MAIN_DB_PREFIX."categorie_".$this->MAP_CAT_TABLE[$type]." as c";