summaryrefslogtreecommitdiff
path: root/app/Factories
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2024-01-17 10:25:07 +0000
committerGreg Roach <greg@subaqua.co.uk>2024-01-17 10:25:36 +0000
commit74be90610a2908213243225eb1e68fa50e5eec55 (patch)
tree372daebbd09232e6a7a1ed2acc85d929f4c6761a /app/Factories
parentb0b1f53350f5707e7bba4dc0fd6ffbbfc2ce61ed (diff)
downloadwebtrees-74be90610a2908213243225eb1e68fa50e5eec55.tar.gz
webtrees-74be90610a2908213243225eb1e68fa50e5eec55.tar.bz2
webtrees-74be90610a2908213243225eb1e68fa50e5eec55.zip
Error handling
Diffstat (limited to 'app/Factories')
-rw-r--r--app/Factories/SlugFactory.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Factories/SlugFactory.php b/app/Factories/SlugFactory.php
index 5d230101ce..2977a91992 100644
--- a/app/Factories/SlugFactory.php
+++ b/app/Factories/SlugFactory.php
@@ -41,7 +41,7 @@ class SlugFactory implements SlugFactoryInterface
if (extension_loaded('intl')) {
$ids = Transliterator::listIDs();
- if (in_array('Any-Latin', $ids, true) && in_array('Latin-ASCII', $ids, true)) {
+ if ($ids !== false && in_array('Any-Latin', $ids, true) && in_array('Latin-ASCII', $ids, true)) {
$this->transliterator = Transliterator::create('Any-Latin;Latin-ASCII');
}
}