mirror of
https://github.com/filegator/filegator.git
synced 2025-08-16 15:24:07 +02:00
refactoring
This commit is contained in:
@@ -189,7 +189,7 @@ class JsonFile implements Service, AuthInterface
|
||||
|
||||
protected function getUsers(): array
|
||||
{
|
||||
$users = json_decode(file_get_contents($this->file), true);
|
||||
$users = json_decode((string) file_get_contents($this->file), true);
|
||||
|
||||
return is_array($users) ? $users : [];
|
||||
}
|
||||
|
Reference in New Issue
Block a user