small fix to cast id_lang
This commit is contained in:
parent
b6dc54c290
commit
b093c60edb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user