condition check to avoid in_array warning

This commit is contained in:
Priyanka Karan 2016-05-20 12:38:26 +01:00
parent 7103382fec
commit 29ff0549a5

View File

@ -81,6 +81,7 @@ function fancytokens_civicrm_tokens( &$tokens ){
}
$type_array = explode( "," , $p_type); // Contributions Activity
if ( is_array( $type_array ) ) {
if ( false == ( in_array("Participant", $type_array ) || in_array("Membership", $type_array ) || in_array("Household", $type_array ) || in_array("Contributions", $type_array ) || in_array("Activity", $type_array ) )) {
$key = 'communitynews.standaloneprofile___'.$cur['id'] ;
@ -91,6 +92,7 @@ function fancytokens_civicrm_tokens( &$tokens ){
}
}
}
}