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

Fixed False Example code for event listener criteria_page

Discussion in 'Resolved Bug Reports' started by ragtek, Oct 25, 2011.

  1. ragtek

    ragtek Guest

    PHP:
    public static function criteriaPage($rule, array $data, array $params, array $containerData, &$returnValue) {     switch ($rule)     {         case 'p_field':         if ($params['p'] == $data['p_value'])         {             $returnValue true;         }         break;                  case 'c_check':         if ($user['c'] == $data['c'])         {             $returnValue true;         }         break;     } }
    should be probably
    PHP:
    public static function criteriaPage($rule, array $data, array $params, array $containerData, &$returnValue) {     switch ($rule)     {         case 'p_field':         if ($params['p'] == $data['p_value'])         {             $returnValue true;         }         break;                  case 'c_check':         if ($params['c'] == $data['c'])         {             $returnValue true;         }         break;     } }
     
  2. Kier

    Kier XenForo Developer Staff Member

    Fixed.
     

Share This Page