Fix searching for picture with just last name not working
This commit is contained in:
1 parent
b8a29a1de2
commit
910bfe85c1
1 file changed
+1
-1
@@ -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