diff --git a/htdocs/compta/bank/budget.php b/htdocs/compta/bank/budget.php index 4976a350738..89fe9a44278 100644 --- a/htdocs/compta/bank/budget.php +++ b/htdocs/compta/bank/budget.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2008 Laurent Destailleur + * Copyright (C) 2004-2010 Laurent Destailleur * Copytight (C) 2005-2009 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -88,7 +88,7 @@ if ($result) print ''.$langs->trans("Total").''; print ''.price($total).''; - print ''.price(price2num($total / $totalnb, 'MT')).''; + print ''.price($totalnb?price2num($total / $totalnb, 'MT'):0).''; } else {