From f4f1f45d5a0da2124662a517666054183b43e242 Mon Sep 17 00:00:00 2001 From: Andrelec1 Date: Fri, 10 Oct 2014 15:01:10 +0200 Subject: [PATCH] copyright and annotation --- htdocs/core/lib/functions.lib.php | 13 +++++++------ htdocs/user/passwordforgotten.php | 1 + 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 931c0b95fdd..28695fa41f4 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -11,6 +11,7 @@ * Copyright (C) 2013 Cédric Salvador * Copyright (C) 2013 Alexandre Spangaro * Copyright (C) 2014 Marcos García + * Copyright (C) 2014 Teddy Andreotti <125155@supinfo.com> * * 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 @@ -1229,15 +1230,15 @@ function dol_print_email($email,$cid=0,$socid=0,$addlink=0,$max=64,$showinvalid= * Hide part of email. * * @param string $mail Email - * @param string $replace Replacement caractaire ( defaul : *) - * @param int $nbreplace Number of replacement caractaire (default : 8) - * @param int $nbdisplaymail Number of caractaire unchanged (default: 4) - * @param int $nbdisplaydomain Number of caractaire unchanged of domain (default: 3) + * @param string $replace Replacement character ( defaul : *) + * @param int $nbreplace Number of replacement character (default : 8) + * @param int $nbdisplaymail Number of character unchanged (default: 4) + * @param int $nbdisplaydomain Number of character unchanged of domain (default: 3) * @param bool $displaytld Display tld (default: true) - * @return string Return hiden email or ''; + * @return string Return hidden email or ''; */ function dol_hideMail($mail, $replace="*", $nbreplace=8, $nbdisplaymail=4, $nbdisplaydomain=3, $displaytld=true){ - if(!isValidEmail($mail))return ' '; + if(!isValidEmail($mail))return ''; $tab = explode('@', $mail); $tab2 = explode('.',$tab[1]); $string_replace = ''; diff --git a/htdocs/user/passwordforgotten.php b/htdocs/user/passwordforgotten.php index c3c4fccb888..eccd3d0cda3 100644 --- a/htdocs/user/passwordforgotten.php +++ b/htdocs/user/passwordforgotten.php @@ -2,6 +2,7 @@ /* Copyright (C) 2007-2011 Laurent Destailleur * Copyright (C) 2008-2012 Regis Houssin * Copyright (C) 2008-2011 Juanjo Menent + * Copyright (C) 2014 Teddy Andreotti <125155@supinfo.com> * * 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