aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-10-20 11:15:06 +0200
committerMario Vavti <mario@mariovavti.com>2022-10-20 11:15:06 +0200
commit53931017b99c6fc77fc7632747e51b06a89b2287 (patch)
tree26357decc1d3a76471863b3f58a0a0455d637e33 /include/channel.php
parente9ca17cec14c5a702cc7d656e5206a3c086dd550 (diff)
downloadvolse-hubzilla-53931017b99c6fc77fc7632747e51b06a89b2287.tar.gz
volse-hubzilla-53931017b99c6fc77fc7632747e51b06a89b2287.tar.bz2
volse-hubzilla-53931017b99c6fc77fc7632747e51b06a89b2287.zip
fix php warnings
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;