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;
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;