Moving to GitHub.
[platal.git] / include / name.func.inc.php
index 1df275b..176870a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2011 Polytechnique.org                              *
+ *  Copyright (C) 2003-2014 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -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,11 +278,11 @@ function capitalize_name($name)
         if (($tail = capitalize_name($tail))) {
             return $token . $separator . $tail;
         }
-        return false;
+        return '';
     }
 
     return $token . $separator;
 }
 
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
 ?>