Skip to content

Commit 00c518d

Browse files
committed
Remove reading the object from the try/catch block. Leave only reading the query parameters in it.
1 parent 687b5e7 commit 00c518d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,15 @@ public function readParameters()
4343
}
4444
EOT
4545
);
46-
$this->formObject = new UserOption($queryParameters['id']);
47-
48-
if (!$this->formObject->getObjectID()) {
49-
throw new IllegalLinkException();
50-
}
5146
} catch (MappingError) {
5247
throw new IllegalLinkException();
5348
}
49+
50+
$this->formObject = new UserOption($queryParameters['id']);
51+
52+
if (!$this->formObject->getObjectID()) {
53+
throw new IllegalLinkException();
54+
}
5455
}
5556

5657
#[\Override]

0 commit comments

Comments
 (0)