summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-04-11 16:40:25 +0000
committeruckelman <uckelman@nomic.net>2010-04-11 16:40:25 +0000
commita341fc77204c72e04c5c2a754854620c10f7e6a5 (patch)
tree8f2e1fcd681ebab3c30092ec87e638b8d7b96a90
parent4e603020e7dcdf556f0aa923123b5a6d1008df71 (diff)
Removed over-tight error checks.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6661 67b53d14-2c14-4ace-a08f-0dab2b34000c
-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);
}