Try to fix travis

This commit is contained in:
fappels 2018-04-13 16:49:03 +02:00
parent 9ba697ea98
commit e054d1ae8d

View File

@ -5966,11 +5966,13 @@ function getCommonSubstitutionArray($outputlangs, $onlykey=0, $exclude=null, $ob
{ {
$extrafieldstmp = new ExtraFields($db); $extrafieldstmp = new ExtraFields($db);
$extralabels = $extrafieldstmp->fetch_name_optionals_label($object->table_element, true); $extralabels = $extrafieldstmp->fetch_name_optionals_label($object->table_element, true);
$object->fetch_optionals(); if ($object->fetch_optionals() > 0)
{
foreach ($extrafieldstmp->attributes[$object->table_element]['label'] as $key => $label) { foreach ($extrafieldstmp->attributes[$object->table_element]['label'] as $key => $label) {
$substitutionarray['__EXTRAFIELD_' . strtoupper($key) . '__'] = $object->array_options['options_' . $key]; $substitutionarray['__EXTRAFIELD_' . strtoupper($key) . '__'] = $object->array_options['options_' . $key];
} }
} }
}
// Complete substitution array with the url to make online payment // Complete substitution array with the url to make online payment
$paymenturl=''; $paymenturl='';