functions.php: supply pdo to _create_antibot

This commit is contained in:
Zankaria 2024-11-28 16:01:50 +01:00
parent b459551ccb
commit 120973a6b0

View file

@ -356,8 +356,12 @@ function define_groups() {
function create_antibot($board, $thread = null) {
require_once dirname(__FILE__) . '/anti-bot.php';
global $pdo;
return _create_antibot($board, $thread);
// Ensure $pdo is initialized.
sql_open();
return _create_antibot($pdo, $board, $thread);
}
function rebuildThemes($action, $boardname = false) {