aboutsummaryrefslogtreecommitdiffstats
path: root/mod/cal.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/cal.php')
-rwxr-xr-xmod/cal.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/cal.php b/mod/cal.php
index b58f3a1f1..56d65d3f2 100755
--- a/mod/cal.php
+++ b/mod/cal.php
@@ -45,6 +45,11 @@ function cal_init(&$a) {
function cal_content(&$a) {
+ if((get_config('system','block_public')) && (! local_channel()) && (! remote_channel())) {
+ return;
+ }
+
+
$channel = null;
if(argc() > 1) {