]> git.mjollnir.org Git - moodle.git/commitdiff
Small code sanitization
authordefacer <defacer>
Mon, 20 Sep 2004 22:37:40 +0000 (22:37 +0000)
committerdefacer <defacer>
Mon, 20 Sep 2004 22:37:40 +0000 (22:37 +0000)
blocks/online_users/block_online_users.php

index cbf3441928ca0e726efc6fb997076f82731aa58e..75540933cb50f88f9aa119dffd2247cc10e28df1 100644 (file)
@@ -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;