diff --git a/htdocs/compta/prelevement/fiche-stat.php b/htdocs/compta/prelevement/fiche-stat.php
index c2316578130..25ae7c52c50 100644
--- a/htdocs/compta/prelevement/fiche-stat.php
+++ b/htdocs/compta/prelevement/fiche-stat.php
@@ -141,7 +141,7 @@ if ($prev_id)
print price($row[0]);
print '
';
- print round($row[0]/$bon->amount*100,2)." %";
+ if ($bon->amount) print round($row[0]/$bon->amount*100,2)." %";
print ' | ';
print "\n";
diff --git a/htdocs/product/admin/product.php b/htdocs/product/admin/product.php
index 5488b4dab1f..8a561c0e53e 100644
--- a/htdocs/product/admin/product.php
+++ b/htdocs/product/admin/product.php
@@ -7,6 +7,7 @@
* Copyright (C) 2011-2012 Juanjo Menent
* Copyright (C) 2012 Christophe Battarel
* Copyright (C) 2012 Cedric Salvador
+ * Copyright (C) 2016 Ferran Marcet
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -109,7 +110,7 @@ if ($action == 'setModuleOptions')
}
}
-if ($action == 'other' && GETPOST('value_PRODUIT_LIMIT_SIZE') > 0)
+if ($action == 'other' && GETPOST('value_PRODUIT_LIMIT_SIZE') >= 0)
{
$res = dolibarr_set_const($db, "PRODUIT_LIMIT_SIZE", GETPOST('value_PRODUIT_LIMIT_SIZE'),'chaine',0,'',$conf->entity);
}