From 2c9749b9052dc57a20fc5a5ef3dca4ed4cdd93c5 Mon Sep 17 00:00:00 2001 From: panabonic Date: Tue, 22 Aug 2023 16:29:45 +0300 Subject: [PATCH] minor fix --- app/Services/Registries/RegistryImportService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}";