From ca564342c358ac982295def490022188dea33917 Mon Sep 17 00:00:00 2001 From: Ultimate Member Date: Wed, 13 Jan 2016 00:33:54 +0200 Subject: [PATCH] Fix php notice --- core/um-permalinks.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 '';