diff --git a/app/Services/Registries/RegistryImportService.php b/app/Services/Registries/RegistryImportService.php index 46c25b0..d9d5a87 100644 --- a/app/Services/Registries/RegistryImportService.php +++ b/app/Services/Registries/RegistryImportService.php @@ -33,7 +33,7 @@ class RegistryImportService { $urlInfo = parse_url($url); if (empty($urlInfo['host'])) $url = str_replace('//', '/', "https://faufcc.ru/{$url}"); $info = pathinfo($url); - if ($info['extension']) { + if ($info['extension'] ?? null) { $path = "public/documents/registries"; $filename = $filename ? "{$filename}.{$info['extension']}" : $info['basename']; $path = $dir ? "{$path}/{$dir}/{$filename}" : "{$path}/{$filename}";