aboutsummaryrefslogtreecommitdiffstats
path: root/mod/connections.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-02 23:56:29 -0700
committerfriendica <info@friendica.com>2013-11-02 23:56:29 -0700
commit9158909fa3e938d04ebf06d2c2dba9417b36ffa6 (patch)
tree146c2f621f8b9e5227cf3c0a58d7fefd0f7ad694 /mod/connections.php
parent8eed3a10062818dd30f339139074be8e721546d5 (diff)
downloadvolse-hubzilla-9158909fa3e938d04ebf06d2c2dba9417b36ffa6.tar.gz
volse-hubzilla-9158909fa3e938d04ebf06d2c2dba9417b36ffa6.tar.bz2
volse-hubzilla-9158909fa3e938d04ebf06d2c2dba9417b36ffa6.zip
return a login form on some protoected pages if not logged in.
Diffstat (limited to 'mod/connections.php')
-rw-r--r--mod/connections.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/connections.php b/mod/connections.php
index efdf0fd55..1ad9fedbc 100644
--- a/mod/connections.php
+++ b/mod/connections.php
@@ -32,8 +32,8 @@ function connections_init(&$a) {
function connections_aside(&$a) {
-if (! local_user())
- return;
+ if (! local_user())
+ return;
if(x($a->data,'abook')) {
$a->set_widget('vcard',vcard_from_xchan($a->data['abook'],$a->get_observer()));
@@ -175,7 +175,7 @@ function connections_content(&$a) {
if(! local_user()) {
notice( t('Permission denied.') . EOL);
- return;
+ return login();
}
if(argc() == 3) {