• 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

R

ragtek

Guest
#1
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;     } }