mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-22 16:23:18 +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
|
public function get(string $name) : ?string
|
||||||
{
|
{
|
||||||
return $this->usesDatabase
|
if ($this->usesDatabase) {
|
||||||
? Icon::find($name)?->content
|
return Icon::find($name)?->content;
|
||||||
: $this->disk()->get($name);
|
} else {
|
||||||
|
return $this->disk()->get($name) ?: null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user