Fix no pitco if bank account not defined

This commit is contained in:
Laurent Destailleur 2018-04-20 08:47:53 +02:00
parent b0b88d18df
commit 5f43ff3609
2 changed files with 3 additions and 3 deletions

View File

@ -430,7 +430,7 @@ print '<input type="hidden" name="sortorder" value="'.$sortorder.'">';
print '<input type="hidden" name="page" value="'.$page.'">';
$listofformat=AccountancyExport::getType();
$button = '<a class="butActionNew" name="button_export_file" href="'.$_SERVER["PHP_SELF"].'?action=export_file'.($param?'&'.$param:'').'">';
$button = '<a class="butAction" name="button_export_file" href="'.$_SERVER["PHP_SELF"].'?action=export_file'.($param?'&'.$param:'').'">';
if (count($filter)) $button.= $langs->trans("ExportFilteredList");
else $button.= $langs->trans("ExportList");
//$button.=' ('.$listofformat[$conf->global->ACCOUNTING_EXPORT_MODELCSV].')';

View File

@ -3469,8 +3469,8 @@ class Form
if ($selected) {
require_once DOL_DOCUMENT_ROOT .'/compta/bank/class/account.class.php';
$bankstatic=new Account($this->db);
$bankstatic->fetch($selected);
print $bankstatic->getNomUrl(1);
$result = $bankstatic->fetch($selected);
if ($result) print $bankstatic->getNomUrl(1);
} else {
print "&nbsp;";
}