Skip to content
Snippets Groups Projects
Commit 7eec919f authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Division by zero

parent 8e78f75b
No related branches found
No related tags found
No related merge requests found
<?php
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copytight (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
*
* This program is free software; you can redistribute it and/or modify
......@@ -88,7 +88,7 @@ if ($result)
print '<tr class="liste_total"><td colspan="2">'.$langs->trans("Total").'</td>';
print '<td align="right" class="liste_total">'.price($total).'</td>';
print '<td align="right" colspan="2" class="liste_total">'.price(price2num($total / $totalnb, 'MT')).'</td></tr>';
print '<td align="right" colspan="2" class="liste_total">'.price($totalnb?price2num($total / $totalnb, 'MT'):0).'</td></tr>';
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment