Support » Plugin: R3DF Dashboard Language Switcher » Suppress PHP notice by adding this code

  • Replace line 476 of r3df-dashboard-language-switcher.php with the following:

    $hide_language = false;
    if ( isset( $this->options['hide_language'][ $lang ] ) ) {
    	$hide_language = $this->options['hide_language'][ $lang ];
    }
    if ( $lang != $loc && ! $hide_language ) {

    currently you are checking the bool value of $this->options['hide_language'][ $lang ] but $lang might not be a valid key of that array and this will trigger a PHP notice

    https://wordpress.org/plugins/r3df-dashboard-language-switcher/

  • The topic ‘Suppress PHP notice by adding this code’ is closed to new replies.