]> git.mjollnir.org Git - moodle.git/commitdiff
If a block forgets to set the footer, we won't get a warning in debug mode.
authordefacer <defacer>
Tue, 25 May 2004 10:01:41 +0000 (10:01 +0000)
committerdefacer <defacer>
Tue, 25 May 2004 10:01:41 +0000 (10:01 +0000)
blocks/moodleblock.class.php

index 77b506e447ef51cbf6b2ce401119fb1370a025fe..49038d9f9c3c4477680da5c23ba06bcfe124c826 100644 (file)
@@ -58,6 +58,9 @@ class MoodleBlock {
         }
 
         $this->get_content();
+        if(!isset($this->content->footer)) {
+            $this->content->footer = '';
+        }
 
         switch($this->content_type) {
             case BLOCK_TYPE_NUKE: