Skip to content

Commit

Permalink
Remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Apr 9, 2016
1 parent af4a975 commit 63dd6d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion htdocs/core/lib/functions2.lib.php
Expand Up @@ -640,7 +640,8 @@ function dolObfuscateEmail($mail, $replace="*", $nbreplace=8, $nbdisplaymail=4,
$mail_domaine = $tab2[0];
$mail_tld = '';

for($i=1; $i < count($tab2) && $displaytld ;$i++)
$nbofelem = count($tab2);
for($i=1; $i < $nbofelem && $displaytld; $i++)
{
$mail_tld .= '.'.$tab2[$i];
}
Expand Down
4 changes: 3 additions & 1 deletion htdocs/core/lib/functionsnumtoword.lib.php
Expand Up @@ -37,7 +37,9 @@ function dolNumberToWord($numero, $langs, $numorcurrency='number')
return -1;
// Get 2 decimals to cents, another functions round or truncate
$strnumber = number_format ($numero,10);
for ($i=0; $i<strlen($strnumber); $i++){
$len=strlen($strnumber);
for ($i=0; $i<$len; $i++)
{
if ($strnumber[$i]=='.') {
$parte_decimal = $strnumber[$i+1].$strnumber[$i+2];
break;
Expand Down

0 comments on commit 63dd6d9

Please sign in to comment.