Commit b77dfb24 authored by Pål Karlsrud's avatar Pål Karlsrud

Don't attempt to use groups if the ID is not set.

parent ed5c7c39
......@@ -29,6 +29,8 @@ class UserHooks {
// If a group the user is part of does not exist, create it,
// otherwise register them as members.
foreach ($groups as $group) {
if (!isset($group->id)) continue;
$oc_group = $this->groupManager->get($group->id);
if (!$oc_group) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment