glob is not needed here

This commit is contained in:
slawkens
2026-02-15 01:20:11 +01:00
parent 8809467fc6
commit 4bc3923996

View File

@@ -10,8 +10,7 @@ class Groups
public function __construct() {
self::$groups = Cache::remember('groups', 10 * 60, function () {
$tomlGroups = glob(config('server_path') . 'config/groups.toml');
if (count($tomlGroups) > 0) {
if (file_exists(config('server_path') . 'config/groups.toml')) {
$groups = new TOML\Groups();
}
else {