Permalink
Browse files

MDL-33294 - block_blog_recent: fix E_STRICT error

Default object from empty value
  • Loading branch information...
danpoltawski committed Jun 16, 2012
1 parent 7f3b68a commit 15ea1c9105908b2019f51f74f7113ecd97505bcf
Showing with 4 additions and 0 deletions.
  1. +4 −0 blocks/blog_recent/block_blog_recent.php
@@ -69,6 +69,10 @@ function get_content() {
require_once($CFG->dirroot .'/blog/lib.php');
require_once($CFG->dirroot .'/blog/locallib.php');
if (empty($this->config)) {
$this->config = new stdClass();
}
if (empty($this->config->recentbloginterval)) {
$this->config->recentbloginterval = 8400;
}

0 comments on commit 15ea1c9

Please sign in to comment.