Skip to content

Commit

Permalink
Merge pull request #3691 from LibreSign/backport/3664/stable29
Browse files Browse the repository at this point in the history
[stable29] fix: prevent warning when check if array has key
  • Loading branch information
vitormattos authored Sep 14, 2024
2 parents 14e0058 + a732aa3 commit 4e2def4
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 @@ -409,7 +409,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 4e2def4

Please sign in to comment.