mirror of
https://github.com/slawkens/myaac.git
synced 2026-04-23 02:43:31 +02:00
glob is not needed here
This commit is contained in:
@@ -10,8 +10,7 @@ class Groups
|
|||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
self::$groups = Cache::remember('groups', 10 * 60, function () {
|
self::$groups = Cache::remember('groups', 10 * 60, function () {
|
||||||
$tomlGroups = glob(config('server_path') . 'config/groups.toml');
|
if (file_exists(config('server_path') . 'config/groups.toml')) {
|
||||||
if (count($tomlGroups) > 0) {
|
|
||||||
$groups = new TOML\Groups();
|
$groups = new TOML\Groups();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user