diff --git a/library/config.php b/library/config.php index 143374e70..6f334684a 100644 --- a/library/config.php +++ b/library/config.php @@ -12,8 +12,8 @@ if (!defined('BB_ROOT')) { } // Server settings -$force_name = 'torrentpier.com'; // enter here your primary domain name of your site -$force_port = 80; +$force_name = 'torrentpier.com'; // The domain name from which this board runs +$force_port = 80; // The port your server is running on $force_ssl = false; $bb_cfg = []; diff --git a/library/includes/functions.php b/library/includes/functions.php index f4b63e76a..3bed8182d 100644 --- a/library/includes/functions.php +++ b/library/includes/functions.php @@ -1506,14 +1506,14 @@ function get_topic_title($topic_id) return $row['topic_title']; } -function forum_exists($forum_id) +function forum_exists($forum_id): bool { - return DB()->fetch_row("SELECT forum_id FROM " . BB_FORUMS . " WHERE forum_id = $forum_id LIMIT 1"); + return (bool)DB()->fetch_row("SELECT forum_id FROM " . BB_FORUMS . " WHERE forum_id = $forum_id LIMIT 1"); } -function cat_exists($cat_id) +function cat_exists($cat_id): bool { - return DB()->fetch_row("SELECT cat_id FROM " . BB_CATEGORIES . " WHERE cat_id = $cat_id LIMIT 1"); + return (bool)DB()->fetch_row("SELECT cat_id FROM " . BB_CATEGORIES . " WHERE cat_id = $cat_id LIMIT 1"); } function get_topic_icon($topic, $is_unread = null)