Skip to content
Snippets Groups Projects
Commit c960584d authored by Andrés's avatar Andrés
Browse files

Fix #1302.

Fix issue that fails for get names on incorrect formats. Ex: J.Everybody
parent b4ecec0e
No related branches found
No related tags found
No related merge requests found
......@@ -697,6 +697,13 @@ class PersonsName {
$r = explode(' ', $name);
$size = count($r);
//check if name is bad format (ex: J.Everybody), and fix them
if($size==1 && mb_strpos($r[0], '.') !== false)
{
$r = explode('.', $name);
$size = count($r);
}
//check first for period, assume salutation if so
if (mb_strpos($r[0], '.') === false)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment