From c1e9e90c639566ca186cd651e76bc91b7098ef13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Zendegi?= Date: Fri, 20 Dec 2024 14:53:58 +0100 Subject: [PATCH] Avoid calling get_groups twice --- settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }