diff --git a/settings.php b/settings.php index 6d562815..0be569e4 100644 --- a/settings.php +++ b/settings.php @@ -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; }