mirror of
https://github.com/slawkens/myaac.git
synced 2026-02-19 11:16:23 +01:00
glob is not needed here
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user