From edfa76a409b53e03671af726341968623786ad2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Zendegi?= Date: Mon, 23 Dec 2024 10:51:33 +0100 Subject: [PATCH] Fix if logic --- classes/webservice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/webservice.php b/classes/webservice.php index 7b22346a..e2528bca 100644 --- a/classes/webservice.php +++ b/classes/webservice.php @@ -473,7 +473,7 @@ private function get_least_recently_active_paid_user_id() { continue; } // Skip the protected group. - if (!empty($this->protectedgroups) && array_intersect($this->protectedgroups, $user->group_ids ?? [])) { + if (!empty($this->protectedgroups) && !empty(array_intersect($this->protectedgroups, $user->group_ids ?? []))) { continue; } // We need the login time.