summaryrefslogtreecommitdiff
path: root/src/PhpBB3.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/PhpBB3.php')
-rw-r--r--src/PhpBB3.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/PhpBB3.php b/src/PhpBB3.php
index 0991a20..880fbab 100644
--- a/src/PhpBB3.php
+++ b/src/PhpBB3.php
@@ -119,18 +119,10 @@ class PhpBB3 {
trigger_error('bad post type: ' . $postType, E_USER_ERROR);
}
- if (!is_int($forumId) || $forumId < 0) {
- trigger_error('bad forum id: ' . $forumId, E_USER_ERROR);
- }
-
if (!$this->forumExists($forumId)) {
trigger_error('forum does not exist: ' . $forumId, E_USER_ERROR);
}
- if (!is_int($topicId)) {
- trigger_error('bad topic id: ' . $topicId, E_USER_ERROR);
- }
-
if ($postType == 'reply' && !$this->topicExists($topicId)) {
trigger_error('topic does not exist: ' . $topicId, E_USER_ERROR);
}