1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not a Bug XenForo_Option_AdminSearchExclusions::verifyOption - unused parameter

Discussion in 'Resolved Bug Reports' started by James, Oct 22, 2011.

  1. James

    James Well-Known Member

    public static function verifyOption(array &$choicesXenForo_DataWriter $dw$fieldName)
            if (
    // insert - just trust the default value
    return true;

    $exclusions = array();

            foreach (
    XenForo_Model::create('XenForo_Model_AdminSearch')->getAllSearchTypes() AS $searchType => $handlerName)
                if (empty(
    $exclusions[$searchType] = true;

    $choices $exclusions;

    The parameter $fieldName isn't used anywhere in the function.

Share This Page