From a341fc77204c72e04c5c2a754854620c10f7e6a5 Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 11 Apr 2010 16:40:25 +0000 Subject: Removed over-tight error checks. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6661 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/PhpBB3.php | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/PhpBB3.php') 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); } -- cgit v1.2.3