forked from leftypol/leftypol
functions.php: supply pdo to _create_antibot
This commit is contained in:
parent
b459551ccb
commit
120973a6b0
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue