Fix php compatibility
This commit is contained in:
parent
1648fc142e
commit
023f359328
@ -781,7 +781,8 @@ class Categorie extends CommonObject
|
|||||||
|
|
||||||
$objs = array();
|
$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 = "SELECT c.fk_".$this->MAP_CAT_FK[$type];
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."categorie_".$this->MAP_CAT_TABLE[$type]." as c";
|
$sql .= " FROM ".MAIN_DB_PREFIX."categorie_".$this->MAP_CAT_TABLE[$type]." as c";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user