diff --git a/core/um-permalinks.php b/core/um-permalinks.php index 6878feba..f807aee9 100644 --- a/core/um-permalinks.php +++ b/core/um-permalinks.php @@ -33,9 +33,9 @@ class UM_Permalinks { function get_current_url( $no_query_params = false ) { global $post; - $um_get_option = get_option('um_options'); - $server_name_method = ( $um_get_option['current_url_method'] ) ? $um_get_option['current_url_method'] : 'SERVER_NAME'; - $um_port_forwarding_url = ( $um_get_option['um_port_forwarding_url'] ) ? $um_get_option['um_port_forwarding_url']: ''; + $um_get_option = get_option('um_options'); + $server_name_method = ( $um_get_option['current_url_method'] ) ? $um_get_option['current_url_method'] : 'SERVER_NAME'; + $um_port_forwarding_url = ( isset( $um_get_option['um_port_forwarding_url'] ) ) ? $um_get_option['um_port_forwarding_url']: ''; if ( !isset( $_SERVER['SERVER_NAME'] ) ) return '';