mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
Update functions.php
This commit is contained in:
parent
55f64a32e3
commit
6b78c96b8f
1 changed files with 2 additions and 0 deletions
|
@ -1616,11 +1616,13 @@ function forum_exists($forum_id = null): bool
|
|||
return (bool)DB()->fetch_row("SELECT 1 FROM " . BB_FORUMS . " LIMIT 1");
|
||||
}
|
||||
|
||||
$forum_id = (int)$forum_id;
|
||||
return (bool)DB()->fetch_row("SELECT 1 FROM " . BB_FORUMS . " WHERE forum_id = $forum_id LIMIT 1");
|
||||
}
|
||||
|
||||
function cat_exists($cat_id): bool
|
||||
{
|
||||
$cat_id = (int)$cat_id;
|
||||
return (bool)DB()->fetch_row("SELECT 1 FROM " . BB_CATEGORIES . " WHERE cat_id = $cat_id LIMIT 1");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue