Fix travis

This commit is contained in:
Laurent Destailleur 2020-08-14 11:52:21 +02:00
parent 85bea5a7c4
commit 52f20a1047

View File

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