Skip to content

Commit 4e03021

Browse files
committed
Remove reading the object from the try/catch block. Leave only reading the query parameters in it.
1 parent 1a410bd commit 4e03021

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

wcfsetup/install/files/lib/acp/form/CaptchaQuestionEditForm.class.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,14 @@ public function readParameters()
4040
}
4141
EOT
4242
);
43-
$this->formObject = new CaptchaQuestion($queryParameters['id']);
44-
45-
if (!$this->formObject->getObjectID()) {
46-
throw new IllegalLinkException();
47-
}
4843
} catch (MappingError) {
4944
throw new IllegalLinkException();
5045
}
46+
47+
$this->formObject = new CaptchaQuestion($queryParameters['id']);
48+
49+
if (!$this->formObject->getObjectID()) {
50+
throw new IllegalLinkException();
51+
}
5152
}
5253
}

0 commit comments

Comments
 (0)