From: Stéphane Jacob Date: Sun, 3 Jun 2012 10:18:43 +0000 (+0200) Subject: Empty public names should be '' instead of False. X-Git-Tag: xorg/1.1.6~1^2~9 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=cac02d6d350bf5a2ab1b2a85116d6d520f5c2fda;p=platal.git Empty public names should be '' instead of False. Signed-off-by: Stéphane Jacob --- diff --git a/include/name.func.inc.php b/include/name.func.inc.php index 1df275b..def816d 100644 --- a/include/name.func.inc.php +++ b/include/name.func.inc.php @@ -253,7 +253,7 @@ function capitalize_name($name) // Extracts the first token of the name. if (!preg_match('/^(\pL+)(([\' -])(.*))?$/ui', $name, $m)) { - return false; + return ''; } $token = mb_strtolower($m[1]); @@ -278,7 +278,7 @@ function capitalize_name($name) if (($tail = capitalize_name($tail))) { return $token . $separator . $tail; } - return false; + return ''; } return $token . $separator;