mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-34873 fix multiple E_STRICT tag related problems
This commit is contained in:
parent
c92d6f417c
commit
7c2cc9c85e
4 changed files with 9 additions and 4 deletions
|
@ -40,6 +40,7 @@ class block_tags extends block_base {
|
|||
global $CFG, $COURSE, $SITE, $USER, $SCRIPT, $OUTPUT;
|
||||
|
||||
if (empty($CFG->usetags)) {
|
||||
$this->content = new stdClass();
|
||||
$this->content->text = '';
|
||||
if ($this->page->user_is_editing()) {
|
||||
$this->content->text = get_string('disabledtags', 'block_tags');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue