Unverified Commit 42f545d9 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(core) Fill empty catch blocks with a comment to please Sonar

issue #6054
Showing with 3 additions and 0 deletions
+3 -0
......@@ -111,6 +111,7 @@ class GroupMembersAttribute extends ObjectsAttribute
$infos = objects::infos(ogroup::$objectTypes[$this->types[$key]]);
}
} catch (NonExistingObjectTypeException $e) {
/* Ignore non-existing types, plugins may have been removed */
}
if (isset($infos['icon'])) {
$img = $infos['icon'];
......
......@@ -183,6 +183,7 @@ class userRoles extends simplePlugin
$g->getBaseObject()->attributesAccess['member']->searchAndRemove($this->dn);
$g->save();
} catch (NonExistingLdapNodeException $e) {
/* Ignore deleted groups */
}
}
/* Remove all roles */
......@@ -192,6 +193,7 @@ class userRoles extends simplePlugin
$r->getBaseObject()->attributesAccess['roleOccupant']->searchAndRemove($this->dn);
$r->save();
} catch (NonExistingLdapNodeException $e) {
/* Ignore deleted roles */
}
}
}
......
Supports Markdown
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