diff options
Diffstat (limited to 'mod/cal.php')
-rwxr-xr-x | mod/cal.php | 5 |
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) { |