aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Ochannel.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-03-22 13:55:23 +0100
committerMario Vavti <mario@mariovavti.com>2018-03-22 13:55:23 +0100
commit8ea8700eef07098629b808ded3bee0a11c1e3608 (patch)
tree28687f749eccb4053ec588cfc6e8915590d0c415 /Zotlabs/Module/Ochannel.php
parent1f128e84fb8f407c6bd678b3b2bb25605884cfc5 (diff)
downloadvolse-hubzilla-8ea8700eef07098629b808ded3bee0a11c1e3608.tar.gz
volse-hubzilla-8ea8700eef07098629b808ded3bee0a11c1e3608.tar.bz2
volse-hubzilla-8ea8700eef07098629b808ded3bee0a11c1e3608.zip
prevent reload loop if somebody lands on /ochannel (without channel_address and without trailing slash)
Diffstat (limited to 'Zotlabs/Module/Ochannel.php')
-rw-r--r--Zotlabs/Module/Ochannel.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Module/Ochannel.php b/Zotlabs/Module/Ochannel.php
index 3b187d2a6..508be1408 100644
--- a/Zotlabs/Module/Ochannel.php
+++ b/Zotlabs/Module/Ochannel.php
@@ -56,6 +56,9 @@ class Ochannel extends \Zotlabs\Web\Controller {
function get($update = 0, $load = false) {
+ if(argc() < 2)
+ return;
+
if($load)
$_SESSION['loadtime'] = datetime_convert();