mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-22 00:03:09 +01:00
Fix iconStoreService get() not returning null on missing file
This commit is contained in:
parent
9c199dc7d5
commit
2b35a9543a
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user