From ced0a9ab74f1c7563c0618c338c85a358e21ff5d Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Sat, 2 Nov 2013 21:11:43 +0000 Subject: Don't set widgets if you're not a local user. --- mod/message.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mod/message.php') diff --git a/mod/message.php b/mod/message.php index 1b4c6ae26..bd2545ea5 100644 --- a/mod/message.php +++ b/mod/message.php @@ -9,6 +9,9 @@ require_once('include/Contact.php'); function message_aside(&$a) { + if (! local_user()) + return; + $a->set_widget('msgaside',replace_macros(get_markup_template('message_side.tpl'), array( '$tabs'=> array(), -- cgit v1.2.3