diff options
author | Thomas Willingham <founder@kakste.com> | 2013-11-02 21:11:43 +0000 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2013-11-02 21:11:43 +0000 |
commit | ced0a9ab74f1c7563c0618c338c85a358e21ff5d (patch) | |
tree | 4f96a0b61bdb8ad1535932dcde2c83227b5f3e6f /mod/connections.php | |
parent | b95d4c118693df21eabea3e75b258debd334367a (diff) | |
download | volse-hubzilla-ced0a9ab74f1c7563c0618c338c85a358e21ff5d.tar.gz volse-hubzilla-ced0a9ab74f1c7563c0618c338c85a358e21ff5d.tar.bz2 volse-hubzilla-ced0a9ab74f1c7563c0618c338c85a358e21ff5d.zip |
Don't set widgets if you're not a local user.
Diffstat (limited to 'mod/connections.php')
-rw-r--r-- | mod/connections.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/connections.php b/mod/connections.php index bcb78f138..efdf0fd55 100644 --- a/mod/connections.php +++ b/mod/connections.php @@ -32,6 +32,9 @@ function connections_init(&$a) { function connections_aside(&$a) { +if (! local_user()) + return; + if(x($a->data,'abook')) { $a->set_widget('vcard',vcard_from_xchan($a->data['abook'],$a->get_observer())); } |