diff options
author | uckelman <uckelman@nomic.net> | 2010-04-11 16:43:49 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-04-11 16:43:49 +0000 |
commit | 5e1d610d9d87da0b6f1d3fe75a875e40f2564c94 (patch) | |
tree | 2c87f97bc7c623fd01a1a7249ee6bd5aa55f9000 | |
parent | 768e1b1d17823eba71d2bee47e729eb44ffadb2e (diff) |
Relaxed input tests.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6663 67b53d14-2c14-4ace-a08f-0dab2b34000c
-rw-r--r-- | src/PhpBB3.php | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/PhpBB3.php b/src/PhpBB3.php index 880fbab..22234f5 100644 --- a/src/PhpBB3.php +++ b/src/PhpBB3.php @@ -51,14 +51,6 @@ class PhpBB3 { public function forumExists($forumId) { global $db; - if (!is_int($forumId)) { - trigger_error('forum id is not an integer', E_USER_ERROR); - } - - if ($forumId < 0) { - trigger_error('forum id is negative', E_USER_ERROR); - } - $sql = 'SELECT 1 FROM ' . FORUMS_TABLE . ' ' . 'WHERE forum_id = ' . $forumId . ' LIMIT 1'; @@ -84,14 +76,6 @@ class PhpBB3 { public function topicExists($topicId) { global $db; - if (!is_int($topicId)) { - trigger_error('topic id is not an integer', E_USER_ERROR); - } - - if ($topicId < 0) { - trigger_error('topic id is negative', E_USER_ERROR); - } - $sql = 'SELECT 1 FROM ' . TOPICS_TABLE . ' ' . 'WHERE topic_id = ' . $topicId . ' LIMIT 1'; |