Skip to content

Commit

Permalink
fix: Don't write the global $board because it confuses SMF into looki…
Browse files Browse the repository at this point in the history
…ng up undefined variables (parent_boards)
  • Loading branch information
live627 committed Feb 27, 2022
1 parent 76ca0ea commit 3c074ab
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/CustomForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ function CustomForm()
{
global $smcFunc, $context, $txt, $scripturl, $sourcedir, $user_info, $modSettings;

global $txt, $context, $sourcedir, $modSettings, $board;


// Generate a visual verification code to make sure the user is no bot.
$context['require_verification'] =
$user_info['is_guest'] || !$user_info['is_mod'] && !$user_info['is_admin'] && !empty($modSettings['posts_require_captcha']) && ($user_info['posts'] < $modSettings['posts_require_captcha']);
Expand Down

0 comments on commit 3c074ab

Please sign in to comment.