aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/channel.php b/include/channel.php
index a309fa5c8..a42315ed6 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -1890,18 +1890,18 @@ function advanced_profile() {
function get_my_url() {
- if(x($_SESSION, 'zrl_override'))
+ if(isset($_SESSION['zrl_override']) && $_SESSION['zrl_override'])
return $_SESSION['zrl_override'];
- if(x($_SESSION, 'my_url'))
+ if(isset($_SESSION['my_url']) && $_SESSION['my_url'])
return $_SESSION['my_url'];
return false;
}
function get_my_address() {
- if(x($_SESSION, 'zid_override'))
+ if(isset($_SESSION['zid_override']) && $_SESSION['zid_override'])
return $_SESSION['zid_override'];
- if(x($_SESSION, 'my_address'))
+ if(isset($_SESSION['my_address']) && $_SESSION['my_address'])
return $_SESSION['my_address'];
return false;