diff --git a/lib/Helper/ValidateHelper.php b/lib/Helper/ValidateHelper.php index b3e605ccd..053c8352d 100644 --- a/lib/Helper/ValidateHelper.php +++ b/lib/Helper/ValidateHelper.php @@ -370,7 +370,6 @@ public function validateIfNodeIdExists(int $nodeId, int $type = self::TYPE_TO_SI } try { $file = $this->root->getById($nodeId); - $file = $file[0] ?? null; } catch (\Throwable $th) { throw new LibresignException($this->l10n->t('File type: %s. Invalid fileID.', [$this->getTypeOfFile($type)])); }