Skip to content

Commit

Permalink
Avoid calling get_groups twice
Browse files Browse the repository at this point in the history
  • Loading branch information
izendegi committed Dec 20, 2024
1 parent 1b9aea3 commit c1e9e90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@
// Only call to the web services and load the setting if the connection is OK
if (isset($status) && $status === 'connectionok') {
$zoomgrps = [];
if (zoom_webservice()->get_groups()) {
$groupobj = zoom_webservice()->get_groups();
$groupobj = zoom_webservice()->get_groups();
if ($groupobj) {
foreach ($groupobj->groups as $group) {
$zoomgrps[$group->id] = $group->name;
}
Expand Down

0 comments on commit c1e9e90

Please sign in to comment.