MDL-34873 fix multiple E_STRICT tag related problems

This commit is contained in:
Petr Škoda 2012-08-19 10:17:12 +02:00
parent c92d6f417c
commit 7c2cc9c85e
4 changed files with 9 additions and 4 deletions

View file

@ -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');