summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/PhpBB3.php16
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';