small fix to cast id_lang

This commit is contained in:
Marion Muszynski 2016-09-07 08:57:28 +02:00
parent b6dc54c290
commit b093c60edb

View File

@ -53,8 +53,8 @@ class Catalog
} else {
$sale->reduction = 'Non défini';
}
$desc = new html2text($sale->description[(int)$id_lang]);
$sale->description[$id_lang] = $desc->get_text();
$desc = new html2text($sale->description[(int) $id_lang]);
$sale->description[(int) $id_lang] = $desc->get_text();
}
foreach ($sales_last_day as &$sale) {
$sql = '
@ -69,8 +69,8 @@ class Catalog
} else {
$sale->reduction = 'Non défini';
}
$desc = new html2text($sale->description[(int)$id_lang]);
$sale->description[$id_lang] = $desc->get_text();
$desc = new html2text($sale->description[(int) $id_lang]);
$sale->description[(int) $id_lang] = $desc->get_text();
}
foreach ($sale_current as &$sale) {
$sql = '
@ -85,8 +85,8 @@ class Catalog
} else {
$sale->reduction = 'Non défini';
}
$desc = new html2text($sale->description[(int)$id_lang]);
$sale->description[$id_lang] = $desc->get_text();
$desc = new html2text($sale->description[(int) $id_lang]);
$sale->description[(int) $id_lang] = $desc->get_text();
}
$this->setXml($sales_today, $sales_last_day, $sale_current, false, $version);