Skip to content

Commit 417806a

Browse files
committed
Remove reading the object from the try/catch block. Leave only reading the query parameters in it.
1 parent 0fded0f commit 417806a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

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

0 commit comments

Comments
 (0)