Merge pull request #10817 from wdammak/patch-35
Fix Warning: Invalid argument - dynamic_price
This commit is contained in:
commit
993183aec6
@ -157,10 +157,13 @@ class PriceParser
|
|||||||
$extrafields = new ExtraFields($this->db);
|
$extrafields = new ExtraFields($this->db);
|
||||||
$extralabels = $extrafields->fetch_name_optionals_label('product', true);
|
$extralabels = $extrafields->fetch_name_optionals_label('product', true);
|
||||||
$product->fetch_optionals();
|
$product->fetch_optionals();
|
||||||
foreach ($extrafields->attributes[$product->table_element]['label'] as $key=>$label)
|
if (is_array($extrafields->attributes[$product->table_element]['label']))
|
||||||
{
|
{
|
||||||
$values["extrafield_".$key] = $product->array_options['options_'.$key];
|
foreach ($extrafields->attributes[$product->table_element]['label'] as $key=>$label)
|
||||||
}
|
{
|
||||||
|
$values["extrafield_".$key] = $product->array_options['options_'.$key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//Process any pending updaters
|
//Process any pending updaters
|
||||||
$price_updaters = new PriceGlobalVariableUpdater($this->db);
|
$price_updaters = new PriceGlobalVariableUpdater($this->db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user