]> git.mjollnir.org Git - moodle.git/commitdiff
FIxed some notices
authormoodler <moodler>
Thu, 24 Aug 2006 03:28:09 +0000 (03:28 +0000)
committermoodler <moodler>
Thu, 24 Aug 2006 03:28:09 +0000 (03:28 +0000)
blocks/moodleblock.class.php

index 4a4a2a872245e57cc07f08820c20dee4998b7ae2..e50fdd1e64d11c2bf911aaea9084bc6481f8eee8 100644 (file)
@@ -221,7 +221,7 @@ class block_base {
        global $COURSE;
 
         // is_empty() includes a call to get_content()
-        if ($this->is_empty()&&!($COURSE->javascriptportal)) {
+        if ($this->is_empty() && empty($COURSE->javascriptportal)) {
             if (empty($this->edit_controls)) {
                 // No content, no edit controls, so just shut up
                 return;
@@ -674,8 +674,7 @@ class block_list extends block_base {
        global $COURSE;
 
         // is_empty() includes a call to get_content()
-
-        if ($this->is_empty()&&!($COURSE->javascriptportal)) {
+        if ($this->is_empty() && empty($COURSE->javascriptportal)) {
             if (empty($this->edit_controls)) {
                 // No content, no edit controls, so just shut up
                 return;