Skip to content

Commit

Permalink
fix: prevent warning when check if array has key
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Sep 13, 2024
1 parent 1e3f589 commit 0c94660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/AccountService.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ private function saveFileOfVisibleElementUsingUser(array $data, IUser $user): Fi
}

private function saveFileOfVisibleElementUsingSession(array $data, string $sessionId): File {
if ($data['nodeId']) {
if (!empty($data['nodeId'])) {
return $this->updateFileOfVisibleElementUsingSession($data, $sessionId);
}
return $this->createFileOfVisibleElementUsingSession($data, $sessionId);
Expand Down

0 comments on commit 0c94660

Please sign in to comment.