Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberroland committed Dec 19, 2023
1 parent ee8467e commit b1db9e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lam/lib/modules/nisNetGroupUser.inc
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,10 @@ class nisNetGroupUser extends baseModule {
continue;
}
$triples = empty($current['nisnetgrouptriple']) ? array() : $current['nisnetgrouptriple'];
if (!empty($changeSet['del'])) {
if (isset($changeSet['del'])) {
$triples = array_delete($changeSet['del'], $triples);
}
if (!empty($changeSet['add'])) {
if (isset($changeSet['add'])) {
$triples = array_merge($changeSet['add'], $triples);
}
$triples = array_values(array_unique($triples));
Expand Down
2 changes: 1 addition & 1 deletion lam/lib/webauthn.inc
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ abstract class PublicKeyCredentialSourceRepositoryBase implements PublicKeyCrede
$pdo = $this->getPDO();
$statement = $pdo->prepare('delete from ' . $this->getTableName());
$statement->execute();
if (empty($data)) {
if ($data === null) {
return;
}
foreach ($data as $dbRow) {
Expand Down

0 comments on commit b1db9e0

Please sign in to comment.