Merge pull request #6087 from fappels/Fix-travis

Fix travis
This commit is contained in:
Laurent Destailleur 2016-12-07 11:26:23 +01:00 committed by GitHub
commit af222e3622

View File

@ -2484,8 +2484,8 @@ if ($action == 'create')
$htmltext='';
if (GETPOST('fac_rec','int') > 0)
{
$dateexample=dol_now();
if (! empty($datefacture?$datefacture:$dateinvoice)) $dateexample=($datefacture?$datefacture:$dateinvoice);
$dateexample=($datefacture ? $datefacture : $dateinvoice);
if (empty($dateexample)) $dateexample=dol_now();
$substitutionarray=array(
'__TOTAL_HT__' => $langs->trans("AmountHT").' ('.$langs->trans("Example").': '.price($exampletemplateinvoice->total_ht).')',
'__TOTAL_TTC__' => $langs->trans("AmountTTC").' ('.$langs->trans("Example").': '.price($exampletemplateinvoice->total_ttc).')',