From cac02d6d350bf5a2ab1b2a85116d6d520f5c2fda Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Sun, 3 Jun 2012 12:18:43 +0200 Subject: [PATCH] Empty public names should be '' instead of False. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- include/name.func.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.1.4