Skip to content

Commit

Permalink
fix typos in php code from merge
Browse files Browse the repository at this point in the history
Signed-off-by: Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
  • Loading branch information
tpokorra committed Aug 31, 2023
1 parent e97a0cd commit 3f1f5db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ private function storeAnswersForQuestion($submissionId, array $question, array $
$this->answerMapper->update($answerEntity);
} else {
if ($answerText === "") {
continue;
return;
}

$answerEntity = new Answer();
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/FormsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public function getForm(int $id): array {
$result['questions'] = $this->getQuestions($id);

// add previous submission if there is one by this user for this form
if ($this->currentUser->getUID() && form->getAllowEdit()) {
if ($this->currentUser->getUID() && $form->getAllowEdit()) {
$submissionEntity = null;
try {
$submissionEntity = $this->submissionMapper->findByFormAndUser($id, $this->currentUser->getUID());
Expand Down

0 comments on commit 3f1f5db

Please sign in to comment.