MDL-33294 - block_blog_tags: fix E_STRICT error
Default object from empty value
This commit is contained in:
@@ -93,6 +93,10 @@ class block_blog_tags extends block_base {
|
||||
// require the libs and do the work
|
||||
require_once($CFG->dirroot .'/blog/lib.php');
|
||||
|
||||
if (empty($this->config)) {
|
||||
$this->config = new stdClass();
|
||||
}
|
||||
|
||||
if (empty($this->config->timewithin)) {
|
||||
$this->config->timewithin = BLOCK_BLOG_TAGS_DEFAULTTIMEWITHIN;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user