Permalink
Browse files

Merge branch 'w51_MDL-37128_m23_rssrestore' of git://github.com/skoda…

…k/moodle into MOODLE_23_STABLE
  • Loading branch information...
2 parents d068c79 + 575d919 commit 1f1dc87fc18589d68d8aa490984f61fdb8477fd7 @danpoltawski danpoltawski committed Jan 7, 2013
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 1f1dc87

Please sign in to comment.