From: moodler Date: Fri, 21 Jan 2005 02:29:29 +0000 (+0000) Subject: Don't show message shortcut icons when not logged in X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4b22e391e4dc33af526fc350ae0184d1469f92a4;p=moodle.git Don't show message shortcut icons when not logged in --- diff --git a/blocks/online_users/block_online_users.php b/blocks/online_users/block_online_users.php index 05a67fef51..5f75eb53bb 100644 --- a/blocks/online_users/block_online_users.php +++ b/blocks/online_users/block_online_users.php @@ -117,7 +117,9 @@ class block_online_users extends block_base { $this->content->text .= ' '; } $this->content->text .= ''.$user->fullname.''; - $this->content->text .= ' '; + if (!empty($USER->id)) { // Only when logged in + $this->content->text .= ' '; + } $this->content->text .= ''; } } else {