MDL-33294 - block_blog_tags: fix E_STRICT error

Default object from empty value
This commit is contained in:
Dan Poltawski
2012-06-16 12:45:41 +08:00
parent 85c4758c5a
commit 7f3b68a892
+4
View File
@@ -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;
}