From 10e3e8263a413b98e42cc6f41d285c0293118fc0 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Thu, 4 Aug 2016 12:24:02 +0800 Subject: [PATCH] Remove notices --- core/um-permalinks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/um-permalinks.php b/core/um-permalinks.php index ef8e8361..858b400b 100644 --- a/core/um-permalinks.php +++ b/core/um-permalinks.php @@ -62,7 +62,7 @@ class UM_Permalinks { $um_get_option = get_option('um_options'); - $server_name_method = ( $um_get_option['current_url_method'] ) ? $um_get_option['current_url_method'] : 'SERVER_NAME'; + $server_name_method = isset( $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']: '';