diff --git a/app/Services/IconStoreService.php b/app/Services/IconStoreService.php index 3209cbb0..a36d7380 100644 --- a/app/Services/IconStoreService.php +++ b/app/Services/IconStoreService.php @@ -129,9 +129,11 @@ protected function registeredIcons() */ public function get(string $name) : ?string { - return $this->usesDatabase - ? Icon::find($name)?->content - : $this->disk()->get($name); + if ($this->usesDatabase) { + return Icon::find($name)?->content; + } else { + return $this->disk()->get($name) ?: null; + } } /**