Permalink
Browse files

MDL-37128 fix E_STRICT rss restore issue

  • Loading branch information...
1 parent 322af44 commit 602150068ac25cbee9bfbd28cb4d0ed23744985f @skodak skodak committed Dec 27, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 blocks/rss_client/backup/moodle2/restore_rss_client_stepslib.php
@@ -78,6 +78,9 @@ public function process_block($data) {
$configdata = $DB->get_field('block_instances', 'configdata', array('id' => $this->task->get_blockid()));
// Extract configdata
$config = unserialize(base64_decode($configdata));
+ if (empty($config)) {
+ $config = new stdClass();
+ }
// Set array of used rss feeds
$config->rssid = $feedsarr;
// Serialize back the configdata

0 comments on commit 6021500

Please sign in to comment.