From: defacer Date: Mon, 20 Sep 2004 22:37:40 +0000 (+0000) Subject: Small code sanitization X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5ef50b7764842d2cae47fc8a551dc20ec2aa1350;p=moodle.git Small code sanitization --- 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;