- small PHP notices fixes;

This commit is contained in:
nikitasinelnikov
2020-08-12 00:56:06 +03:00
parent dc281c2c0d
commit eeadc4ac89
3 changed files with 18 additions and 11 deletions
@@ -269,8 +269,9 @@ if ( ! class_exists( 'um\core\External_Integrations' ) ) {
function get_languages_codes( $current_code = false ) {
global $sitepress;
if ( ! $this->is_wpml_active() )
if ( ! $this->is_wpml_active() ) {
return $current_code;
}
$current_code = ! empty( $current_code ) ? $current_code : $sitepress->get_current_language();