From 5e1d610d9d87da0b6f1d3fe75a875e40f2564c94 Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 11 Apr 2010 16:43:49 +0000 Subject: Relaxed input tests. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6663 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/PhpBB3.php | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/PhpBB3.php') 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'; -- cgit v1.2.3