• Resolved sylarlocke

    (@sylarlocke)


    Hi,

    I have installed this module and the title message appears at the bottom of the page:

    “Warning: in_array () expects parameter 2 to be array”

    I’ve been deactivating plugin in case anyone has any relationship and I have seen that with the “Polylang” plugin you have this conflict,

    Is it possible to solve this problem when there are two languages?

    This error is in line 180, exactly $current_lg

    function exit_popup() {
    	
    	// Check for language
    	$check_lg = true;
    	if( array_key_exists( 'wpml_object_id' , $GLOBALS['wp_filter']) ) {
    		$epp_lg = get_option('exit_popup_languages');
      
    		$current_lg = ICL_LANGUAGE_CODE;
      
    		$check_lg = false;
      
    		if( in_array($current_lg, $epp_lg) ) $check_lg = true;
    	}

    Thanks

    • This topic was modified 4 years, 9 months ago by sylarlocke.
  • The topic ‘Warning: in_array() expects parameter 2 to be array’ is closed to new replies.