Fix searching for picture with just last name not working
This commit is contained in:
@@ -129,7 +129,7 @@ if (($handle = fopen($inputFile, "r")) !== FALSE) {
|
||||
$name_patterns[] = "^" . $first_name . ".*";
|
||||
}
|
||||
if ($last_name != $first_name && strlen($last_name)) {
|
||||
"^" . $last_name . ".*";
|
||||
$name_patterns[] = "^" . $last_name . ".*";
|
||||
}
|
||||
|
||||
$regex_groups = array_map(function($x) { return "(?:" . $x . ")"; }, $name_patterns);
|
||||
|
||||
Reference in New Issue
Block a user