From b25054e891fdb1eb88474a289025cf6d9d1d534c Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 25 Sep 2020 13:47:40 +0200 Subject: if we do not have App::$poi here we would already have returned. No need to check here. --- Zotlabs/Module/Chanview.php | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'Zotlabs/Module/Chanview.php') diff --git a/Zotlabs/Module/Chanview.php b/Zotlabs/Module/Chanview.php index 1c476d125..06ff10f9e 100644 --- a/Zotlabs/Module/Chanview.php +++ b/Zotlabs/Module/Chanview.php @@ -99,19 +99,17 @@ class Chanview extends \Zotlabs\Web\Controller { $is_zot = false; $connected = false; - if (App::$poi) { - $url = App::$poi['xchan_url']; - if(in_array(App::$poi['xchan_network'], ['zot', 'zot6'])) { - $is_zot = true; - } - if(local_channel()) { - $c = q("select abook_id from abook where abook_channel = %d and abook_xchan = '%s' limit 1", - intval(local_channel()), - dbesc(App::$poi['xchan_hash']) - ); - if($c) - $connected = true; - } + $url = App::$poi['xchan_url']; + if(in_array(App::$poi['xchan_network'], ['zot', 'zot6'])) { + $is_zot = true; + } + if(local_channel()) { + $c = q("select abook_id from abook where abook_channel = %d and abook_xchan = '%s' limit 1", + intval(local_channel()), + dbesc(App::$poi['xchan_hash']) + ); + if($c) + $connected = true; } // We will load the chanview template if it's a foreign network, -- cgit v1.2.3