Skip to content
Snippets Groups Projects
Commit 26b8112d authored by arnaud's avatar arnaud
Browse files

FIX travis check

parent 951ea512
No related branches found
No related tags found
No related merge requests found
...@@ -29,10 +29,11 @@ ...@@ -29,10 +29,11 @@
* @deprecated * @deprecated
* @param float $numero Number to convert * @param float $numero Number to convert
* @param Lang $langs Language * @param Lang $langs Language
* @param string $numorcurrency 'number' or 'amount' * @param boolean $currency 0=number to translate | 1=currency to translate
* @return string Text of the number or -1 in case TOO LONG (more than 1000000000000.99) * @param boolean $centimes 0=no centimes | 1=centimes to translate
* @return string Text of the number
*/ */
function dol_convertToWord($num = false, $langs, $currency=false, $centimes=false) function dol_convertToWord($num=0, $langs, $currency=false, $centimes=false)
{ {
global $conf; global $conf;
...@@ -89,6 +90,7 @@ function dol_convertToWord($num = false, $langs, $currency=false, $centimes=fals ...@@ -89,6 +90,7 @@ function dol_convertToWord($num = false, $langs, $currency=false, $centimes=fals
$langs->transnoentitiesnoconv('trillion'), $langs->transnoentitiesnoconv('trillion'),
$langs->transnoentitiesnoconv('quadrillion') $langs->transnoentitiesnoconv('quadrillion')
); );
$num_length = strlen($num); $num_length = strlen($num);
$levels = (int) (($num_length + 2) / 3); $levels = (int) (($num_length + 2) / 3);
$max_length = $levels * 3; $max_length = $levels * 3;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment