Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-37128 fix E_STRICT rss restore issue

  • Loading branch information...
commit 575d91977e6a4af92fcdd20855a71846289eba2e 1 parent 4a76321
Petr Skoda skodak authored
3  blocks/rss_client/backup/moodle2/restore_rss_client_stepslib.php
@@ -78,6 +78,9 @@ public function process_block($data) {
78 78 $configdata = $DB->get_field('block_instances', 'configdata', array('id' => $this->task->get_blockid()));
79 79 // Extract configdata
80 80 $config = unserialize(base64_decode($configdata));
  81 + if (empty($config)) {
  82 + $config = new stdClass();
  83 + }
81 84 // Set array of used rss feeds
82 85 $config->rssid = $feedsarr;
83 86 // Serialize back the configdata

0 comments on commit 575d919

Please sign in to comment.
Something went wrong with that request. Please try again.