Skip to content

Commit 3016f09

Browse files
committed
fix: check more possible scenarios
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent dfa3f2e commit 3016f09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Helper/ValidateHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ public function validateIdentifySigners(array $data): void {
512512
}
513513

514514
private function validateSignersDataStructure(array $data): void {
515-
if (empty($data) || !array_key_exists('users', $data) || !is_array($data['users'])) {
515+
if (empty($data) || !array_key_exists('users', $data) || !is_array($data['users']) || empty($data['users'])) {
516516
throw new LibresignException($this->l10n->t('No signers'));
517517
}
518518
}

0 commit comments

Comments
 (0)