make run array_unique once after merge

This commit is contained in:
Abdul Malik Ikhsan 2020-07-10 12:59:38 +07:00
parent b8bff1b442
commit 41a8f04014
No known key found for this signature in database
GPG Key ID: 23FCCC74D1442CAE

View File

@ -262,14 +262,14 @@ class FileLocator
}
}
// Remove any duplicates
$foundPaths = array_unique($foundPaths);
if (! $prioritizeApp && ! empty($appPaths))
{
$foundPaths = array_merge($foundPaths, array_unique($appPaths));
$foundPaths = array_merge($foundPaths, $appPaths);
}
// Remove any duplicates
$foundPaths = array_unique($foundPaths);
return $foundPaths;
}