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

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

            
    $exclusions = array();

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

            
    $choices $exclusions;

            return 
    true;
        }
    The parameter $fieldName isn't used anywhere in the function.
     

Share This Page