For functions like runScheduledTask, group memberships need to be checked for specific users other than the one logged in. This makes sure Logged-In Users is added to the group list if the user ID is > 1, instead of checking if the current visitor is anonymous.
Also, checking for an empty $groups array is redundant since "All Users" was added previously.
For functions like runScheduledTask, group memberships need to be checked for specific users other than the one logged in. This makes sure Logged-In Users is added to the group list if the user ID is > 1, instead of checking if the current visitor is anonymous.
Also, checking for an empty $groups array is redundant since "All Users" was added previously.