From 5ef50b7764842d2cae47fc8a551dc20ec2aa1350 Mon Sep 17 00:00:00 2001 From: defacer Date: Mon, 20 Sep 2004 22:37:40 +0000 Subject: [PATCH] Small code sanitization --- blocks/online_users/block_online_users.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/blocks/online_users/block_online_users.php b/blocks/online_users/block_online_users.php index cbf3441928..75540933cb 100644 --- a/blocks/online_users/block_online_users.php +++ b/blocks/online_users/block_online_users.php @@ -31,15 +31,14 @@ class CourseBlock_online_users extends MoodleBlock { return $this->content; } + $this->content = New stdClass; + $this->content->text = ''; + $this->content->footer = ''; + if (empty($this->course)) { - $this->content = ''; return $this->content; } - $this->content = New object; - $this->content->text = ''; - $this->content->footer = ''; - $timetoshowusers = 300; //Seconds default if (isset($CFG->block_online_users_timetosee)) { $timetoshowusers = $CFG->block_online_users_timetosee * 60; -- 2.39.5