mirror of
https://github.com/slawkens/myaac.git
synced 2026-05-01 14:53:32 +02:00
Use static methods instead, looks better
This commit is contained in:
@@ -47,8 +47,7 @@ class OTS_Groups_List implements IteratorAggregate, Countable
|
||||
return;
|
||||
}
|
||||
|
||||
$groups = new Groups();
|
||||
foreach($groups->getGroups() as $id => $info) {
|
||||
foreach(Groups::get() as $id => $info) {
|
||||
$this->groups[$id] = new OTS_Group($info);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user