Skip to content

Commit b163c92

Browse files
committed
fix typos in php code from merge
Signed-off-by: Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
1 parent 8c4b1c0 commit b163c92

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Controller/ApiController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ private function storeAnswersForQuestion($submissionId, array $question, array $
929929
$this->answerMapper->update($answerEntity);
930930
} else {
931931
if ($answerText === "") {
932-
continue;
932+
return;
933933
}
934934

935935
$answerEntity = new Answer();

lib/Service/FormsService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function getForm(Form $form): array {
180180
$result['questions'] = $this->getQuestions($form->getId());
181181

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

0 commit comments

Comments
 (0)