<?php
/***************************************************************************
- * Copyright (C) 2003-2011 Polytechnique.org *
+ * Copyright (C) 2003-2013 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
// Extracts the first token of the name.
if (!preg_match('/^(\pL+)(([\' -])(.*))?$/ui', $name, $m)) {
- return false;
+ return '';
}
$token = mb_strtolower($m[1]);
if (($tail = capitalize_name($tail))) {
return $token . $separator . $tail;
}
- return false;
+ return '';
}
return $token . $separator;