diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-09-21 15:08:02 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-09-21 15:08:02 +0200 |
commit | 6f43468724fccec3b37b7411a5ecb45a3ebe2e0b (patch) | |
tree | 4af7cec4a5f0aa5d3b82be239af899fa075799ad /Zotlabs/Lib/Apps.php | |
parent | 18a9ebdb1e9d9824a7346dcd58437ffc03c5beb1 (diff) | |
download | volse-hubzilla-6f43468724fccec3b37b7411a5ecb45a3ebe2e0b.tar.gz volse-hubzilla-6f43468724fccec3b37b7411a5ecb45a3ebe2e0b.tar.bz2 volse-hubzilla-6f43468724fccec3b37b7411a5ecb45a3ebe2e0b.zip |
compare strpos() result against false
Diffstat (limited to 'Zotlabs/Lib/Apps.php')
-rw-r--r-- | Zotlabs/Lib/Apps.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php index 905a20ee0..b35eb9844 100644 --- a/Zotlabs/Lib/Apps.php +++ b/Zotlabs/Lib/Apps.php @@ -388,9 +388,10 @@ class Apps { // This will catch somebody clicking on a system "available" app that hasn't had the path macros replaced // and they are allowed to see the app - if(strpos($papp['url'],'$baseurl') || strpos($papp['url'],'$nick') || strpos($papp['photo'],'$baseurl') || strpos($papp['photo'],'$nick')) { + if(strpos($papp['url'],'$baseurl') !== false || strpos($papp['url'],'$nick') !== false || strpos($papp['photo'],'$baseurl') !== false || strpos($papp['photo'],'$nick') !== false) { $view_channel = local_channel(); if(! $view_channel) { + $sys = get_sys_channel(); $view_channel = $sys['channel_id']; } |