From 28e7967aea71230349b1889d5f853c5b143d745b Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 24 Aug 2006 03:28:09 +0000 Subject: [PATCH] FIxed some notices --- blocks/moodleblock.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; -- 2.39.5