From: moodler Date: Thu, 24 Aug 2006 03:28:09 +0000 (+0000) Subject: FIxed some notices X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=28e7967aea71230349b1889d5f853c5b143d745b;p=moodle.git FIxed some notices --- diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index 4a4a2a8722..e50fdd1e64 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -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;