Skip to content

Commit

Permalink
Fix if logic
Browse files Browse the repository at this point in the history
  • Loading branch information
izendegi committed Dec 23, 2024
1 parent 75b29d5 commit edfa76a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/webservice.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit edfa76a

Please sign in to comment.